HAL_LayerEMDRV > EZRADIODRV

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 137 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 153 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 145 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]ezradioIrqCallbackEZRadio interrupt callback configuration
[in]enablePTIIf true enables the radio PTI bridge in the controller.

Definition at line 66 of file ezradio_hal.c.

References CMU_ClockEnable(), cmuClock_PRS, GPIO_InputSenseSet(), GPIO_INSENSE_PRS, GPIO_IntConfig(), GPIO_PinModeSet(), GPIOINT_CallbackRegister(), gpioModeInput, gpioModeInputPull, gpioModePushPull, PRS, PRS_CH_CTRL_SIGSEL_GPIOPIN14, PRS_CH_CTRL_SIGSEL_GPIOPIN15, PRS_CH_CTRL_SOURCESEL_GPIOH, PRS_ROUTE_CH0PEN, PRS_ROUTE_CH1PEN, 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 171 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 161 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 123 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
readByteRead byte.

Definition at line 203 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
byteCountNumber of bytes to write.
pDataPointer to the byte array.

Definition at line 225 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
byteToWriteByte to write.

Definition at line 193 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
byteCountNumber of bytes to write.
pDataPointer to the byte array.

Definition at line 214 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
byteCountNumber of bytes to write.
pDataPointer to the byte array.

Definition at line 236 of file ezradio_hal.c.

References SPIDRV_MTransferB().

Referenced by ezradio_comm_GetResp(), and ezradio_comm_ReadData().