no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mykonos_dbgjesd.h
Go to the documentation of this file.
1
8
15
16#ifndef MYKONOS_DBGJESD_H_
17#define MYKONOS_DBGJESD_H_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include "mykonos.h"
24#include "t_mykonos_gpio.h"
25#include "t_mykonos_dbgjesd.h"
26#include "mykonos_user.h"
27
28/*
29 *****************************************************************************
30 * JESD debug functions
31 *****************************************************************************
32 */
34
37
40
43
45
47
50
52
54
55mykonosDbgErr_t MYKONOS_framerSetPatternGen(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint32_t pattern, uint8_t enable, uint8_t toggle);
56mykonosDbgErr_t MYKONOS_framerGetPatternGen(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint32_t *pattern, uint8_t *enable, uint8_t *toggle);
57
60
61/* Helper functions for indirect access to internal register */
62mykonosDbgErr_t MYKONOS_jesdIndWrReg(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint8_t intAddr, uint8_t data);
63mykonosDbgErr_t MYKONOS_jesdIndRdReg(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint8_t intAddr, uint8_t *data);
64
65mykonosDbgErr_t MYKONOS_framerCoreSel(mykonos_jesdcore_t jesdCore, uint16_t rxFramerAdd, uint16_t *baseAddr);
66
67
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* MYKONOS_DBGJESD_H_ */
void toggle(struct no_os_gpio_desc *led)
Definition blinky_example.c:26
Contains macro definitions and function prototypes for mykonos.c.
mykonosDbgErr_t MYKONOS_framerCoreSel(mykonos_jesdcore_t jesdCore, uint16_t rxFramerAdd, uint16_t *baseAddr)
Helper function to perform JESD framer core selection.
Definition mykonos_dbgjesd.c:1309
mykonosDbgErr_t MYKONOS_deframerRstErrIrq(mykonosDevice_t *device, mykonosErrType_t errType, mykonosLaneSel_t lane)
Performs reset of the selected error type IRQ for the given lane.
Definition mykonos_dbgjesd.c:401
mykonosDbgErr_t MYKONOS_deframerForceSyncReq(mykonosDevice_t *device, uint8_t syncReq)
Performs Deframer Force SYNC requests.
Definition mykonos_dbgjesd.c:856
mykonosDbgErr_t MYKONOS_deframerRdErrCntr(mykonosDevice_t *device, mykonosLaneSel_t laneSel, mykonosLaneErr_t *laneErr)
Performs read back of the error counters for selected lane of the JESD Deframer.
Definition mykonos_dbgjesd.c:496
mykonosDbgErr_t MYKONOS_deframerGetErrThrs(mykonosDevice_t *device, uint8_t *errThrs)
Performs read JESD Deframer error thresholds.
Definition mykonos_dbgjesd.c:630
mykonosDbgErr_t MYKONOS_jesdIndRdReg(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint8_t intAddr, uint8_t *data)
Performs indirect read access to internal JESD register.
Definition mykonos_dbgjesd.c:173
const char * getDbgJesdMykonosErrorMessage(mykonosDbgErr_t errorCode)
Helper function for return of character string based on 32-bit mykonosDbgErr_t enum value.
Definition mykonos_dbgjesd.c:35
mykonosDbgErr_t MYKONOS_deframerGetIrq(mykonosDevice_t *device, uint8_t *errIrq)
Performs a read of the JESD IRQ vector for the deframer.
Definition mykonos_dbgjesd.c:967
mykonosDbgErr_t MYKONOS_deframerRstErrCntr(mykonosDevice_t *device, mykonosErrType_t errType, mykonosLaneSel_t lane)
Performs reset of the selected error type for the selected lane.
Definition mykonos_dbgjesd.c:341
mykonosDbgErr_t MYKONOS_deframerGetEnLanes(mykonosDevice_t *device, uint8_t *lane)
Performs read of enabled JESD Deframer lanes.
Definition mykonos_dbgjesd.c:806
mykonosDbgErr_t MYKONOS_deframerGetSyncMask(mykonosDevice_t *device, uint8_t *errSyncMask)
Performs get JESD Deframer SyncMask.
Definition mykonos_dbgjesd.c:749
mykonosDbgErr_t MYKONOS_deframerSetSyncMask(mykonosDevice_t *device, uint8_t errSyncMask)
Performs set JESD Deframer Sync mask.
Definition mykonos_dbgjesd.c:685
mykonosDbgErr_t MYKONOS_framerGetPatternGen(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint32_t *pattern, uint8_t *enable, uint8_t *toggle)
Gets JESD framer Pattern generator.
Definition mykonos_dbgjesd.c:1119
mykonosDbgErr_t MYKONOS_deframerGetErrLane(mykonosDevice_t *device, mykonosErrType_t errType, uint8_t *lane)
Performs read back lanes in error for the given errType of the JESD Deframer.
Definition mykonos_dbgjesd.c:290
mykonosDbgErr_t MYKONOS_deframerSetIrqMask(mykonosDevice_t *device, uint8_t errIrqMsk)
Performs set JESD Deframer IRQ mask that will be used to generates interrupts.
Definition mykonos_dbgjesd.c:897
mykonosDbgErr_t MYKONOS_jesdIndWrReg(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint8_t intAddr, uint8_t data)
Performs indirect write access to internal JESD register.
Definition mykonos_dbgjesd.c:122
mykonosDbgErr_t MYKONOS_framerSetZeroData(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, mykonosLaneSel_t lane)
Performs set JESD framer Zero data samples per lane.
Definition mykonos_dbgjesd.c:1206
mykonosDbgErr_t MYKONOS_deframerRd2Stat(mykonosDevice_t *device, uint8_t *defStat2)
Performs reads to JESD Deframer secondary status register.
Definition mykonos_dbgjesd.c:236
mykonosDbgErr_t MYKONOS_deframerSetErrThrs(mykonosDevice_t *device, uint8_t errThrs)
Performs set JESD Deframer error thresholds.
Definition mykonos_dbgjesd.c:594
mykonosDbgErr_t MYKONOS_framerGetZeroData(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, mykonosLaneSel_t *lane)
Performs get JESD framer Zero data samples.
Definition mykonos_dbgjesd.c:1255
mykonosDbgErr_t MYKONOS_framerSetPatternGen(mykonosDevice_t *device, mykonos_jesdcore_t jesdCore, uint32_t pattern, uint8_t enable, uint8_t toggle)
Performs set JESD framer Pattern Generator.
Definition mykonos_dbgjesd.c:1034
Contains macro definitions and global structure declarations for mykonos_user.c.
Definition ad9361_util.h:63
Data structure to hold Mykonos device settings.
Definition t_mykonos.h:1696
Data structure to hold the error counters per a given lane.
Definition t_mykonos_dbgjesd.h:138
Contains definitions and structure declarations for mykonos_dbgjesd.c.
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:31
mykonos_jesdcore_t
Enum to select Jesd core.
Definition t_mykonos_dbgjesd.h:65
mykonosErrType_t
Enum for the error type.
Definition t_mykonos_dbgjesd.h:127
mykonosLaneSel_t
Enum to set the Lane.
Definition t_mykonos_dbgjesd.h:75
Mykonos GPIO error handling and type defines.