ADF7030-1 Device Drivers API Reference Manual  Alpha 0.0.1
Device Drivers for ADF7030-1 Transceiver
PHY State Machine Interface
Collaboration diagram for PHY State Machine Interface:

Macros

#define TRANSITION_STATUS_EXECUTING   1
 
#define TRANSITION_STATUS_IDLE   2
 
#define TRANSITION_STATUS_TRANSITION   0
 

Enumerations

enum  ADI_ADF7030_1_RADIO_CMD_TYPE {
  RADIO_CMD = (0x1 << 7),
  SPECIAL_CMD = (0x1 << 6)
}
 
enum  ADI_ADF7030_1_RADIO_STATE {
  PHY_SLEEP = 0x00,
  PHY_OFF = 0x01,
  PHY_ON = 0x02,
  PHY_RX = 0x03,
  PHY_TX = 0x04,
  DO_CFG_DEV = 0x05,
  PHY_CCA = 0x06,
  PHY_PATCH = 0x07,
  DO_IRCAL = 0x08,
  DO_CAL = 0x09,
  DO_TEMP_MEAS = 0x0A,
  DO_XTAL_TCAL = 0x0B,
  DO_LFRC_CAL = 0x0C
}
 

Functions

uint32_t adf7030_1__XferCmd (ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_STATE PHY_CMD)
 Generic Radio PHY Command Transfers. More...
 

Detailed Description

Enumeration Type Documentation

Enumeration of different radio command type

Definition at line 54 of file adf7030-1__state.h.

Enumeration of different radio firmware states

Definition at line 16 of file adf7030-1__state.h.

Function Documentation

uint32_t adf7030_1__XferCmd ( ADI_SPI_HANDLE  hSPIDevice,
ADI_ADF7030_1_RADIO_STATE  PHY_CMD 
)

Generic Radio PHY Command Transfers.

Parameters
[in]hSPIDeviceHandle to Glue SPI peripheral device used to communicate with the adf7030-1.
[in]PHY_CMDPHY Command from ADI_ADF7030_1_RADIO_STATE.
Note
This function does not use SPI PHY Radio polling mechanism. It need to be reimplemented once new SPI drivers is ready. The "Wait for cmd_ready bit" is not correct
Returns
Status
  • #SUCCESS If the transfert was succesfull to the adf7030-1.
  • #FAILURE [D] If the transfert failed.

Definition at line 94 of file adf7030-1__state.c.

Here is the call graph for this function: