58 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
61 uint8_t txCtsBuf[EZRADIODRV_MAX_CTS_BUFF_SIZE];
62 uint8_t rxCtsBuf[EZRADIODRV_MAX_CTS_BUFF_SIZE];
66 for (cnt = 1; cnt < byteCount+2; cnt++)
74 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
82 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
83 if (rxCtsBuf[1] == 0xFF)
90 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
96 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
101 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
107 #if defined(ezradio_comm_ERROR_CALLBACK)
110 ezradio_comm_ERROR_CALLBACK();
114 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
115 if (rxCtsBuf[1] == 0xFF)
117 if (rxCtsVal == 0xFF)
124 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
125 for (cnt = 0; cnt < byteCount; cnt++)
127 pData[cnt] = rxCtsBuf[cnt+2];
146 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
150 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
166 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
167 uint8_t txBuf[] = {cmd, 0xFF};
168 uint8_t rxBuf[EZRADIODRV_MAX_CTS_BUFF_SIZE];
180 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
183 for (cnt = 0; cnt < byteCount; cnt++)
185 pData[cnt] = rxBuf[cnt+1];
209 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
210 uint8_t txBuff[EZRADIODRV_MAX_CTS_BUFF_SIZE];
222 #if defined(EZRADIODRV_SPI_4WIRE_MODE)
225 for (cnt = 0; cnt < byteCount; cnt++)
227 txBuff[cnt+1] = pData[cnt];
249 #ifdef EZRADIODRV_COMM_USE_GPIO1_FOR_CTS
254 while(!ezradio_hal_Gpio1Level())
void ezradio_hal_SetNsel(void)
#define EZRADIODRV_COMM_CTS_RETRY
Number of wait-for-CTS retries.
void ezradio_comm_ClearCTS()
Ecode_t USTIMER_Init(void)
Activate and initialize the hardware timer used to pace the 1 microsecond delay functions.
This file contains EZRadio HAL.
void ezradio_hal_SpiWriteReadData(uint8_t byteCount, uint8_t *txData, uint8_t *rxData)
void ezradio_hal_SpiWriteData(uint8_t byteCount, uint8_t *pData)
EZRADIODRV configuration file.
General Purpose IO (GPIO) peripheral API.
void ezradio_hal_SpiWriteByte(uint8_t byteToWrite)
uint8_t ezradio_comm_PollCTS(void)
void ezradio_hal_SpiReadData(uint8_t byteCount, uint8_t *pData)
uint8_t ezradio_comm_GetResp(uint8_t byteCount, uint8_t *pData)
uint8_t ezradio_comm_SendCmdGetResp(uint8_t cmdByteCount, uint8_t *pCmdData, uint8_t respByteCount, uint8_t *pRespData)
void ezradio_hal_SpiReadByte(uint8_t *readByte)
Ecode_t USTIMER_DeInit(void)
Deinitialize USTIMER driver.
void ezradio_comm_WriteData(uint8_t cmd, uint8_t pollCts, uint8_t byteCount, uint8_t *pData)
void ezradio_hal_ClearNsel(void)
Microsecond delay function API definition.
Ecode_t USTIMER_Delay(uint32_t usec)
Delay a given number of microseconds.
void ezradio_comm_ReadData(uint8_t cmd, uint8_t pollCts, uint8_t byteCount, uint8_t *pData)
This file contains the EZRadio communication layer.
void ezradio_comm_SendCmd(uint8_t byteCount, uint8_t *pData)
uint8_t ezradio_comm_CtsWentHigh