Detailed Description

EzRadio HAL Layer


     

.

Functions

void ezradio_hal_AssertShutdown (void)
void ezradio_hal_ClearNsel (void)
void ezradio_hal_DeassertShutdown (void)
void ezradio_hal_GpioInit ( GPIOINT_IrqCallbackPtr_t ezradioIrqCallback, bool enablePTI)
uint8_t ezradio_hal_NirqLevel (void)
void ezradio_hal_SetNsel (void)
void ezradio_hal_SpiInit (void)
void ezradio_hal_SpiReadByte (uint8_t *readByte)
void ezradio_hal_SpiReadData (uint8_t byteCount, uint8_t *pData)
void ezradio_hal_SpiWriteByte (uint8_t byteToWrite)
void ezradio_hal_SpiWriteData (uint8_t byteCount, uint8_t *pData)
void ezradio_hal_SpiWriteReadData (uint8_t byteCount, uint8_t *txData, uint8_t *rxData)

Function Documentation

void ezradio_hal_AssertShutdown ( void )

Asserts SDN pin of the EZRadio device.

Definition at line 135 of file ezradio_hal.c .

References GPIO_PinOutSet() .

Referenced by ezradio_reset() .

void ezradio_hal_ClearNsel ( void )

Clears nSEL pin of the EZRadio device.

Definition at line 151 of file ezradio_hal.c .

References GPIO_PinOutClear() .

Referenced by ezradio_comm_GetResp() , ezradio_comm_ReadData() , ezradio_comm_SendCmd() , and ezradio_comm_WriteData() .

void ezradio_hal_DeassertShutdown ( void )

Deasserts SDN pin of the EZRadio device.

Definition at line 143 of file ezradio_hal.c .

References GPIO_PinOutClear() .

Referenced by ezradio_reset() .

void ezradio_hal_GpioInit ( GPIOINT_IrqCallbackPtr_t ezradioIrqCallback,
bool enablePTI
)

Configures the EZRadio GPIO port and pins

Parameters
[in] ezradioIrqCallback EZRadio interrupt callback configuration
[in] enablePTI If true enables the radio PTI bridge in the controller.

Definition at line 64 of file ezradio_hal.c .

References CMU_ClockEnable() , cmuClock_PRS , GPIO_InputSenseSet() , GPIO_IntConfig() , GPIO_PinModeSet() , GPIOINT_CallbackRegister() , gpioModeInput , gpioModeInputPull , gpioModePushPull , and PRS_SourceAsyncSignalSet() .

Referenced by ezradioInit() .

uint8_t ezradio_hal_NirqLevel ( void )

Reads nIRQ pin of the EZRadio device.

Returns
Value of nIRQ pin.

Definition at line 169 of file ezradio_hal.c .

References GPIO_PinInGet() .

Referenced by ezradio_configuration_init() .

void ezradio_hal_SetNsel ( void )

Sets nSEL pin of the EZRadio device.

Definition at line 159 of file ezradio_hal.c .

References GPIO_PinOutSet() .

Referenced by ezradio_comm_GetResp() , ezradio_comm_ReadData() , ezradio_comm_SendCmd() , and ezradio_comm_WriteData() .

void ezradio_hal_SpiInit ( void )

Initializes SPI driver for the EZRadio device.

Definition at line 121 of file ezradio_hal.c .

References SPIDRV_Init::bitRate , SPIDRV_Init::csControl , SPIDRV_Init() , and spidrvCsControlApplication .

Referenced by ezradioInit() .

void ezradio_hal_SpiReadByte ( uint8_t * readByte )

Reads a single byte from the EZRadio SPI port.

Parameters
readByte Read byte.

Definition at line 201 of file ezradio_hal.c .

References SPIDRV_MReceiveB() .

Referenced by ezradio_comm_GetResp() .

void ezradio_hal_SpiReadData ( uint8_t byteCount,
uint8_t * pData
)

Reads byteCount number of bytes from the EZRadio SPI port.

Parameters
byteCount Number of bytes to write.
pData Pointer to the byte array.

Definition at line 223 of file ezradio_hal.c .

References SPIDRV_MReceiveB() .

Referenced by ezradio_comm_GetResp() , and ezradio_comm_ReadData() .

void ezradio_hal_SpiWriteByte ( uint8_t byteToWrite )

Writes a single byte to the EZRadio SPI port.

Parameters
byteToWrite Byte to write.

Definition at line 191 of file ezradio_hal.c .

References SPIDRV_MTransmitB() .

Referenced by ezradio_comm_GetResp() , ezradio_comm_ReadData() , and ezradio_comm_WriteData() .

void ezradio_hal_SpiWriteData ( uint8_t byteCount,
uint8_t * pData
)

Writes byteCount number of bytes to the EZRadio SPI port.

Parameters
byteCount Number of bytes to write.
pData Pointer to the byte array.

Definition at line 212 of file ezradio_hal.c .

References SPIDRV_MTransmitB() .

Referenced by ezradio_comm_SendCmd() , and ezradio_comm_WriteData() .

void ezradio_hal_SpiWriteReadData ( uint8_t byteCount,
uint8_t * txData,
uint8_t * rxData
)

Reads byteCount number of bytes from the EZRadio SPI port.

Parameters
byteCount Number of bytes to write.
pData Pointer to the byte array.

Definition at line 234 of file ezradio_hal.c .

References SPIDRV_MTransferB() .

Referenced by ezradio_comm_GetResp() , and ezradio_comm_ReadData() .