Skip to content
Snippets Groups Projects
Commit 7a2f16e0 authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/snmpd: add descriptions of mode, seqState and slignState in wrsSpllStatusGroup


Update MIB and wrsSpllStatusGroup.h with descriptions of number used in
wrsSpllMode, wrsSpllSeqState and wrsSpllAlignState

Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent a9d63c26
Branches
Tags
No related merge requests found
......@@ -691,11 +691,16 @@ wrsSpllState OBJECT IDENTIFIER ::= { wrsExpertStatus 3 }
wrsSpllStatusGroup OBJECT IDENTIFIER ::= { wrsSpllState 2 }
wrsSpllMode OBJECT-TYPE
SYNTAX Integer32
SYNTAX INTEGER {
na(0),
grandmaster(1),
master(2),
slave(3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Mode of Soft PLL"
"Mode of Soft PLL (values taken from softpll_ng.h)"
::= { wrsSpllStatusGroup 1 }
wrsSpllIrqCnt OBJECT-TYPE
......@@ -707,19 +712,40 @@ wrsSpllIrqCnt OBJECT-TYPE
::= { wrsSpllStatusGroup 2 }
wrsSpllSeqState OBJECT-TYPE
SYNTAX Integer32
SYNTAX INTEGER {
startExt(1),
waitExt(2),
startHelper(3),
waitHelper(4),
startMain(5),
waitMain(6),
disabled(7),
ready(8),
clearDacs(9),
waitClearDacs(10)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Sequence state of Soft PLL"
"Sequence state of Soft PLL (values taken from file softpll_ng.c in wrpc-sw repo)"
::= { wrsSpllStatusGroup 3 }
wrsSpllAlignState OBJECT-TYPE
SYNTAX Integer32
SYNTAX INTEGER {
extOff(0),
start(1),
initCsync(2),
waitCsync(3),
waitSample(4),
compensateDelay(5),
locked(6),
startAlignment(7),
startMain(8)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Align state of Soft PLL"
"Align state of Soft PLL (values taken from file spll_external.c in wrpc-sw repo)"
::= { wrsSpllStatusGroup 4 }
wrsSpllHlock OBJECT-TYPE
......
......@@ -4,6 +4,34 @@
#define WRSSPLLSTATUS_CACHE_TIMEOUT 5
#define WRSSPLLSTATUS_OID WRS_OID, 7, 3, 2
/* values taken from softpll_ng.h */
#define WRS_SPLL_MODE_GRAND_MASTER 1
#define WRS_SPLL_MODE_MASTER 2 /* free running master */
#define WRS_SPLL_MODE_SLAVE 3
/* values taken from file spll_external.c in wrpc-sw repo */
#define WRS_SPLL_ALIGN_STATE_EXT_OFF 0
#define WRS_SPLL_ALIGN_STATE_START 1
#define WRS_SPLL_ALIGN_STATE_INIT_CSYNC 2
#define WRS_SPLL_ALIGN_STATE_WAIT_CSYNC 3
#define WRS_SPLL_ALIGN_STATE_START_ALIGNMENT 7
#define WRS_SPLL_ALIGN_STATE_WAIT_SAMPLE 4
#define WRS_SPLL_ALIGN_STATE_COMPENSATE_DELAY 5
#define WRS_SPLL_ALIGN_STATE_LOCKED 6
#define WRS_SPLL_ALIGN_STATE_START_MAIN 8
/* values taken from file softpll_ng.c in wrpc-sw repo */
#define WRS_SPLL_SEQ_STATE_START_EXT 1
#define WRS_SPLL_SEQ_STATE_WAIT_EXT 2
#define WRS_SPLL_SEQ_STATE_START_HELPER 3
#define WRS_SPLL_SEQ_STATE_WAIT_HELPER 4
#define WRS_SPLL_SEQ_STATE_START_MAIN 5
#define WRS_SPLL_SEQ_STATE_WAIT_MAIN 6
#define WRS_SPLL_SEQ_STATE_DISABLED 7
#define WRS_SPLL_SEQ_STATE_READY 8
#define WRS_SPLL_SEQ_STATE_CLEAR_DACS 9
#define WRS_SPLL_SEQ_STATE_WAIT_CLEAR_DACS 10
struct wrsSpllStatus_s {
int32_t wrsSpllMode;
int32_t wrsSpllIrqCnt;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment