Preliminary Technical Data UG-1828
Rev. PrB | Page 59 of 277
API PROGRAMMING
The ADRV9001 SSI configuration is performed in chip initialization stage and based on the following data structure.
typedef struct adi_adrv9001_SsiConfig
{
adi_adrv9001_SsiType_e ssiType;
adi_adrv9001_SsiDataFormat_e ssiDataFormatSel;
adi_adrv9001_SsiNumLane_e numLaneSel;
adi_adrv9001_SsiStrobeType_e strobeType;
uint8_t lsbFirst;
uint8_t qFirst;
bool refClockGpioEn;
uint8_t lvdsBitInversion;
uint8_t lvdsUseLsbIn12bitMode;
bool lvdsTxFullRefClkEn;
bool lvdsRxClkInversionEn;
uint32_t rfLvdsDiv;
bool cmosTxDdrNegStrobeEn;
bool cmosDdrPosClkEn;
bool cmosDdrClkInversionEn;
bool cmosDdrEn;
} adi_adrv9001_SsiConfig_t;
In the data structure, the previously mentioned SSI modes are defined for each Tx/RX channel, users can find the detail data structure
and enumerator description in API doxygen help file.
A set of API commands are provided to set and inspect the SSI test/debug functions, which are summarized in Table 20.
Table 20. SSI Test/Debug API List
SSI Function Name Description
adi_adrv9001_Ssi_Rx_TestMode_Configure Configures the SSI test mode for the specified Rx channel
adi_adrv9001_Ssi_Tx_TestMode_Configure Configures the SSI test mode for the specified Tx channel
adi_adrv9001_Ssi_Tx_TestMode_Status_Inspect Inspects the SSI test mode status for the specified Tx channel
adi_adrv9001_Ssi_Loopback_Set
Set the enabledness of Rx to Tx SSI interface loopback
adi_adrv9001_Ssi_Delay_Configure Programs the SSI delay configuration
adi_adrv9001_Ssi_Delay_Inspect Gets the SSI delay configuration from ADRV9001 device
adi_adrv9001_Ssi_PowerDown_Set Set the power down mode for the specified channel and SSI type