Go to the documentation of this file.
19 #define ADI_POW2_48 ((uint64_t)1u << 48)
20 #define ADI_MAXUINT48 (ADI_POW2_48 - 1)
22 #define ADI_POW2_32 ((uint64_t)1u << 32)
23 #define ADI_MAXUINT32 (ADI_POW2_32 - 1)
24 #define ADI_MAXUINT24 (0xFFFFFF)
25 #define ADI_GET_BYTE(w, p) (uint8_t)(((w) >> (p)) & 0xFF)
28 #define DIV_U64_REM(x, y, r) no_os_div64_u64_rem(x, y, r)
30 #define NO_OS_DIV_U64(x, y) no_os_div_u64(x, y)
32 #define DIV_S64(x, y) no_os_div_s64(x, y)
47 typedef int (*
spi_xfer_t) (
void *user_data, uint8_t *indata, uint8_t *outdata,
62 typedef int (*
delay_us_t) (
void *user_data,
unsigned int us);
@ SYNCOUTB_0
Definition: api_def.h:215
@ PRBS_NONE
Definition: api_def.h:258
@ SPI_SDO
Definition: api_def.h:182
@ SIGNAL_CMOS
Definition: api_def.h:194
@ PRBS31
Definition: api_def.h:261
@ PRBS7
Definition: api_def.h:259
#define API_ERROR_INVALID_HANDLE_PTR
Definition: api_errors.h:29
Definition: api_def.h:155
uint8_t jesd_CS
Definition: api_def.h:241
#define AD9208_FD_LT_LSB(x)
Definition: ad9208_reg.h:114
int(* tx_en_pin_ctrl_t)(void *user_data, uint8_t enable)
TX_ENABLE PIN CONTROL FUNCTION.
Definition: api_def.h:133
@ SIGNAL_UNKNOWN
Definition: api_def.h:196
signal_type_t
Definition: api_def.h:193
#define FD_THRESHOLD_MAG_DBFS_MAX
Definition: ad9208_signal_monitor_api.c:18
@ JESD_SUBCLASS_0
Definition: api_def.h:251
#define AD9208_FD_DWELL_MSB(x)
Definition: ad9208_reg.h:121
#define AD9208_FD_UT_LSB(x)
Definition: ad9208_reg.h:110
uint8_t jesd_L
Definition: api_def.h:231
Definition: ad9208_api.h:78
@ COUPLING_DC
Definition: api_def.h:202
uint8_t jesd_N
Definition: api_def.h:238
int ad9208_register_read(ad9208_handle_t *h, const uint16_t address, uint8_t *data)
Perform SPI register read access to AD9208 Device.
Definition: ad9208_reg.c:40
@ SYSREF_CONT
Definition: api_def.h:224
uint8_t val
Definition: api_def.h:159
int(* hw_close_t)(void *user_data)
Closes any platform hardware resources for the AD9164 Device.
Definition: api_def.h:98
@ SYNCOUTB_1
Definition: api_def.h:216
#define AD9208_FD_UT_LSB_REG
Definition: ad9208_reg.h:109
@ JESD_LINK_0
Definition: api_def.h:208
int(* event_handler_t)(uint16_t event, uint8_t ref, void *data)
Client Event Handler.
Definition: api_def.h:113
@ SIGNAL_LVDS
Definition: api_def.h:195
spi_sdo_config_t
Definition: api_def.h:175
#define AD9208_FD_DWELL_MSB_REG
Definition: ad9208_reg.h:120
@ JESD_SUBCLASS_INVALID
Definition: api_def.h:253
#define AD9208_FD_LT_MSB(x)
Definition: ad9208_reg.h:116
uint8_t jesd_S
Definition: api_def.h:234
signal_coupling_t
Definition: api_def.h:200
#define AD9208_FD_UT_MSB_REG
Definition: ad9208_reg.h:111
jesd_prbs_pattern_t
Definition: api_def.h:257
uint8_t dev_revision
Definition: api_def.h:171
uint8_t jesd_NP
Definition: api_def.h:239
Definition: api_def.h:230
@ SYSREF_MODE_INVLD
Definition: api_def.h:226
#define FD_DWELL_CLK_CYCLES_MAX
Definition: ad9208_signal_monitor_api.c:19
#define AD9208_FD_UT_MSB(x)
Definition: ad9208_reg.h:112
uint8_t jesd_LID0
Definition: api_def.h:245
jesd_sysref_mode_t
Definition: api_def.h:221
@ SPI_CONFIG_MAX
Definition: api_def.h:189
#define AD9208_FD_LT_MSB_REG
Definition: ad9208_reg.h:115
int ad9208_adc_set_fd_thresholds(ad9208_handle_t *h, uint16_t upper_dbfs, uint16_t lower_dbfs, uint16_t dwell_time)
Configure The Fast Detect Overange Signal Thresholds.
Definition: ad9208_signal_monitor_api.c:40
uint8_t jesd_F
Definition: api_def.h:232
@ JESD_LINK_1
Definition: api_def.h:209
int ad9208_adc_get_overange_status(ad9208_handle_t *h, uint8_t *status)
Get ADC Over range Status.
Definition: ad9208_signal_monitor_api.c:21
@ PRBS_MAX
Definition: api_def.h:262
int(* delay_us_t)(void *user_data, unsigned int us)
Delay for specified number of microseconds. Platform Dependant.
Definition: api_def.h:62
uint8_t jesd_HD
Definition: api_def.h:236
API error codes header file.
jesd_subclass_t
Definition: api_def.h:250
uint8_t jesd_BID
Definition: api_def.h:244
uint8_t jesd_JESDV
Definition: api_def.h:246
int(* spi_xfer_t)(void *user_data, uint8_t *indata, uint8_t *outdata, int size_bytes)
Platform dependent SPI access functions.
Definition: api_def.h:47
@ COUPLING_UNKNOWN
Definition: api_def.h:203
int(* reset_pin_ctrl_t)(void *user_data, uint8_t enable)
RESETB PIN CONTROL FUNCTION.
Definition: api_def.h:152
@ SYSREF_NONE
Definition: api_def.h:222
@ SYSREF_MON
Definition: api_def.h:225
@ SYNCOUTB_ALL
Definition: api_def.h:217
AD9208 SPI Register Definition Header File.
#define API_ERROR_INVALID_PARAM
Definition: api_errors.h:35
#define AD9208_FD_DWELL_LSB_REG
Definition: ad9208_reg.h:118
uint8_t chip_type
Definition: api_def.h:165
uint8_t jesd_K
Definition: api_def.h:237
@ COUPLING_AC
Definition: api_def.h:201
#define NULL
Definition: wrapper.h:64
#define AD9208_OP_OVERANGE_STAT_REG
Definition: ad9208_reg.h:192
@ JESD_LINK_ALL
Definition: api_def.h:210
Definition: api_def.h:163
@ JESD_SUBCLASS_1
Definition: api_def.h:252
uint8_t jesd_M
Definition: api_def.h:233
#define AD9208_FD_DWELL_LSB(x)
Definition: ad9208_reg.h:119
#define API_ERROR_OK
Definition: api_errors.h:25
uint8_t jesd_CF
Definition: api_def.h:240
@ SPI_NONE
Definition: api_def.h:177
int(* hw_open_t)(void *user_data)
Platform hardware initialisation for the AD9164 Device.
Definition: api_def.h:80
jesd_link_t
Definition: api_def.h:207
Header file of utility functions.
uint8_t prod_grade
Definition: api_def.h:169
#define AD9208_OP_OVERANGE_CLR_REG
Definition: ad9208_reg.h:191
uint8_t jesd_DID
Definition: api_def.h:243
uint16_t reg
Definition: api_def.h:157
uint16_t prod_id
Definition: api_def.h:167
@ PRBS15
Definition: api_def.h:260
@ SYSREF_ONESHOT
Definition: api_def.h:223
@ SPI_SDIO
Definition: api_def.h:187
int ad9208_register_write(ad9208_handle_t *h, const uint16_t address, const uint8_t data)
Perform SPI register write access to AD9208 Device.
Definition: ad9208_reg.c:20
jesd_syncoutb_t
Definition: api_def.h:214