no-OS
t_mykonos_dbgjesd.h
Go to the documentation of this file.
1 
16 #ifndef T_MYKONOS_DBGJESD_H_
17 #define T_MYKONOS_DBGJESD_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "common.h"
24 
30 typedef enum
31 {
43 
51 
54 
57 
60 
64 typedef enum
65 {
66  MYK_FRAMER = 0,
70 
74 typedef enum
75 {
76  MYK_LANE_0 = 0,
77  MYK_LANE_1 = 1,
78  MYK_LANE_2 = 2,
81 
85 typedef enum
86 {
91 
95 typedef enum
96 {
98  MYK_SYNC_NIT = 0x02,
99  MYK_SYNC_UEKC = 0x01
101 
105 typedef enum
106 {
107  MYK_IRQ_CMM = 0x08,
109  MYK_IRQ_NIT = 0x02,
110  MYK_IRQ_UEKC = 0x01
112 
116 typedef enum
117 {
118  MYK_CLEAR = 1,
119  MYK_RESET = 2,
122 
126 typedef enum
127 {
128  MYK_CMM = 0x7B,
129  MYK_BADDISP = 0x6D,
130  MYK_NIT = 0x6E,
131  MYK_UEKC = 0x6F
133 
137 typedef struct
138 {
139  uint8_t badDispCntr;
140  uint8_t nitCntr;
141  uint8_t uekcCntr;
143 
147 typedef struct
148 {
149  uint8_t deframerStatus;
150  uint8_t deframerStatus2;
151  uint8_t fifoDepth;
153  uint8_t fifoFullEMpty;
158  uint8_t irqMask;
159  uint8_t errCntrMax;
160  uint8_t enabledLanes;
162 
163 #ifdef __cplusplus
164 }
165 #endif
166 
167 #endif /* T_MYKONOS_DBGJESD_H_ */
mykonosSyncMasks_t
mykonosSyncMasks_t
Enum for the IRQ mask.
Definition: t_mykonos_dbgjesd.h:95
mykonosDeframerStatus_t::lane0
mykonosLaneErr_t lane0
Definition: t_mykonos_dbgjesd.h:154
MYK_LANE_2
@ MYK_LANE_2
Definition: t_mykonos_dbgjesd.h:78
MYK_NIT
@ MYK_NIT
Definition: t_mykonos_dbgjesd.h:130
MYKONOS_ERR_DBG_ZERO_DATA_LANE_NULL
@ MYKONOS_ERR_DBG_ZERO_DATA_LANE_NULL
Definition: t_mykonos_dbgjesd.h:53
MYKONOS_ERR_DBG_PATTERN_GEN_NULL_PATTERN
@ MYKONOS_ERR_DBG_PATTERN_GEN_NULL_PATTERN
Definition: t_mykonos_dbgjesd.h:48
mykonosIrqMasks_t
mykonosIrqMasks_t
Enum for the IRQ mask.
Definition: t_mykonos_dbgjesd.h:105
mykonosDeframerStatus_t::deframerStatus2
uint8_t deframerStatus2
Definition: t_mykonos_dbgjesd.h:150
mykonosDeframerStatus_t::errCntrMax
uint8_t errCntrMax
Definition: t_mykonos_dbgjesd.h:159
MYK_OBS_FRAMER
@ MYK_OBS_FRAMER
Definition: t_mykonos_dbgjesd.h:68
MYKONOS_ERR_DBG_FRAMER_ILLEGAL_JESD_CORE
@ MYKONOS_ERR_DBG_FRAMER_ILLEGAL_JESD_CORE
Definition: t_mykonos_dbgjesd.h:56
mykonosDeframerStatus_t::irqMask
uint8_t irqMask
Definition: t_mykonos_dbgjesd.h:158
mykonosDbgErr_t
mykonosDbgErr_t
Enum of unique error codes from the Mykonos DBG API functions. Each error condition in the library sh...
Definition: t_mykonos_dbgjesd.h:30
mykonosDeframerStatus_t::lane3
mykonosLaneErr_t lane3
Definition: t_mykonos_dbgjesd.h:157
mykonosDeframerStatus_t::fifoDepth
uint8_t fifoDepth
Definition: t_mykonos_dbgjesd.h:151
mykonosHandleType_t
mykonosHandleType_t
Enum for the error handling type.
Definition: t_mykonos_dbgjesd.h:116
MYK_IRQ_UEKC
@ MYK_IRQ_UEKC
Definition: t_mykonos_dbgjesd.h:110
MYKONOS_ERR_DBG_PATTERN_GEN_NULL_ENABLE
@ MYKONOS_ERR_DBG_PATTERN_GEN_NULL_ENABLE
Definition: t_mykonos_dbgjesd.h:49
mykonosLaneErr_t::uekcCntr
uint8_t uekcCntr
Definition: t_mykonos_dbgjesd.h:141
mykonosLaneSel_t
mykonosLaneSel_t
Enum to set the Lane.
Definition: t_mykonos_dbgjesd.h:74
MYK_RESET
@ MYK_RESET
Definition: t_mykonos_dbgjesd.h:119
mykonosDeframerStatus_t::lane1
mykonosLaneErr_t lane1
Definition: t_mykonos_dbgjesd.h:155
mykonosDeframerStatus_t::phaseOffsetLFMC_sysref
uint8_t phaseOffsetLFMC_sysref
Definition: t_mykonos_dbgjesd.h:152
MYK_SYNC_BADDISP
@ MYK_SYNC_BADDISP
Definition: t_mykonos_dbgjesd.h:97
MYK_FRAMER
@ MYK_FRAMER
Definition: t_mykonos_dbgjesd.h:66
MYK_SYNC_UEKC
@ MYK_SYNC_UEKC
Definition: t_mykonos_dbgjesd.h:99
MYK_BAD_DISP_CNTR
@ MYK_BAD_DISP_CNTR
Definition: t_mykonos_dbgjesd.h:87
MYKONOS_ERR_DBG_ILLEGAL_LANE_NUMBER
@ MYKONOS_ERR_DBG_ILLEGAL_LANE_NUMBER
Definition: t_mykonos_dbgjesd.h:34
MYKONOS_ERR_DBG_ILLEGAL_DATA_POINTER
@ MYKONOS_ERR_DBG_ILLEGAL_DATA_POINTER
Definition: t_mykonos_dbgjesd.h:38
MYK_DEFRAMER
@ MYK_DEFRAMER
Definition: t_mykonos_dbgjesd.h:67
mykonosErrType_t
mykonosErrType_t
Enum for the error type.
Definition: t_mykonos_dbgjesd.h:126
MYKONOS_ERR_DBG_PATTERN_GEN_NOT_ENABLED
@ MYKONOS_ERR_DBG_PATTERN_GEN_NOT_ENABLED
Definition: t_mykonos_dbgjesd.h:46
MYKONOS_ERR_DBG_FRAMER_SEL_BASE_ADD_NULL
@ MYKONOS_ERR_DBG_FRAMER_SEL_BASE_ADD_NULL
Definition: t_mykonos_dbgjesd.h:55
mykonosLaneErr_t::nitCntr
uint8_t nitCntr
Definition: t_mykonos_dbgjesd.h:140
MYKONOS_ERR_DBG_NUMBER_OF_ERRORS
@ MYKONOS_ERR_DBG_NUMBER_OF_ERRORS
Definition: t_mykonos_dbgjesd.h:58
MYKONOS_ERR_DBG_ILLEGAL_ERROR_SELECTED
@ MYKONOS_ERR_DBG_ILLEGAL_ERROR_SELECTED
Definition: t_mykonos_dbgjesd.h:36
MYKONOS_ERR_DBG_ILLEGAL_FRAMER_PATTERN
@ MYKONOS_ERR_DBG_ILLEGAL_FRAMER_PATTERN
Definition: t_mykonos_dbgjesd.h:44
MYKONOS_ERR_DBG_ERROR_SYNC_MASK
@ MYKONOS_ERR_DBG_ERROR_SYNC_MASK
Definition: t_mykonos_dbgjesd.h:40
mykonos_jesdcore_t
mykonos_jesdcore_t
Enum to select Jesd core.
Definition: t_mykonos_dbgjesd.h:64
MYK_LANE_3
@ MYK_LANE_3
Definition: t_mykonos_dbgjesd.h:79
MYKONOS_ERR_DBG_ILLEGAL_ERROR_TYPE
@ MYKONOS_ERR_DBG_ILLEGAL_ERROR_TYPE
Definition: t_mykonos_dbgjesd.h:35
MYK_CLEAR
@ MYK_CLEAR
Definition: t_mykonos_dbgjesd.h:118
mykonosDeframerStatus_t::lane2
mykonosLaneErr_t lane2
Definition: t_mykonos_dbgjesd.h:156
mykonosLaneErr_t
Data structure to hold the error counters per a given lane.
Definition: t_mykonos_dbgjesd.h:137
MYKONOS_ERR_DBG_NULL_PARM
@ MYKONOS_ERR_DBG_NULL_PARM
Definition: t_mykonos_dbgjesd.h:39
MYKONOS_ERR_DBG_ILLEGAL_JESD_CORE
@ MYKONOS_ERR_DBG_ILLEGAL_JESD_CORE
Definition: t_mykonos_dbgjesd.h:37
MYK_BADDISP
@ MYK_BADDISP
Definition: t_mykonos_dbgjesd.h:129
MYKONOS_ERR_DBG_FAIL
@ MYKONOS_ERR_DBG_FAIL
Definition: t_mykonos_dbgjesd.h:33
MYK_CLEAR_RESET
@ MYK_CLEAR_RESET
Definition: t_mykonos_dbgjesd.h:120
MYKONOS_ERR_DBG_ILLEGAL_ENABLE
@ MYKONOS_ERR_DBG_ILLEGAL_ENABLE
Definition: t_mykonos_dbgjesd.h:45
mykonosDeframerStatus_t::fifoFullEMpty
uint8_t fifoFullEMpty
Definition: t_mykonos_dbgjesd.h:153
MYK_UEKC
@ MYK_UEKC
Definition: t_mykonos_dbgjesd.h:131
MYKONOS_ERR_DBG_ERROR_IRQ_MASK
@ MYKONOS_ERR_DBG_ERROR_IRQ_MASK
Definition: t_mykonos_dbgjesd.h:41
MYK_SYNC_NIT
@ MYK_SYNC_NIT
Definition: t_mykonos_dbgjesd.h:98
MYKONOS_ERR_DBG_ERROR_THRESHOLD
@ MYKONOS_ERR_DBG_ERROR_THRESHOLD
Definition: t_mykonos_dbgjesd.h:42
MYKONOS_ERR_DBG_ZERO_DATA_INV_LANE
@ MYKONOS_ERR_DBG_ZERO_DATA_INV_LANE
Definition: t_mykonos_dbgjesd.h:52
MYK_NIT_CNTR
@ MYK_NIT_CNTR
Definition: t_mykonos_dbgjesd.h:88
MYK_IRQ_NIT
@ MYK_IRQ_NIT
Definition: t_mykonos_dbgjesd.h:109
MYK_LANE_1
@ MYK_LANE_1
Definition: t_mykonos_dbgjesd.h:77
mykonosDeframerStatus_t::enabledLanes
uint8_t enabledLanes
Definition: t_mykonos_dbgjesd.h:160
mykonosCtrSel_t
mykonosCtrSel_t
Enum to set the Lane.
Definition: t_mykonos_dbgjesd.h:85
MYKONOS_ERR_DBG_ILLEGAL_TOGGLE
@ MYKONOS_ERR_DBG_ILLEGAL_TOGGLE
Definition: t_mykonos_dbgjesd.h:47
mykonosDeframerStatus_t::deframerStatus
uint8_t deframerStatus
Definition: t_mykonos_dbgjesd.h:149
MYKONOS_ERR_DBG_OK
@ MYKONOS_ERR_DBG_OK
Definition: t_mykonos_dbgjesd.h:32
MYK_IRQ_CMM
@ MYK_IRQ_CMM
Definition: t_mykonos_dbgjesd.h:107
MYK_LANE_0
@ MYK_LANE_0
Definition: t_mykonos_dbgjesd.h:76
MYK_CMM
@ MYK_CMM
Definition: t_mykonos_dbgjesd.h:128
mykonosDeframerStatus_t
Data structure to hold the deframer status.
Definition: t_mykonos_dbgjesd.h:147
mykonosLaneErr_t::badDispCntr
uint8_t badDispCntr
Definition: t_mykonos_dbgjesd.h:139
MYK_IRQ_BADDISP
@ MYK_IRQ_BADDISP
Definition: t_mykonos_dbgjesd.h:108
MYKONOS_ERR_DBG_PATTERN_GEN_NULL_TOGGLE
@ MYKONOS_ERR_DBG_PATTERN_GEN_NULL_TOGGLE
Definition: t_mykonos_dbgjesd.h:50
MYK_UEKC_CNTR
@ MYK_UEKC_CNTR
Definition: t_mykonos_dbgjesd.h:89