41 #include "ezradio_cmd.h"
42 #include "ezradio_prop.h"
83 uint8_t ezradioCmd[7u];
85 ezradioCmd[0] = EZRADIO_CMD_ID_POWER_UP;
86 ezradioCmd[1] = boot_options;
87 ezradioCmd[2] = xtal_options;
88 ezradioCmd[3] = (uint8_t)(xo_freq >> 24);
89 ezradioCmd[4] = (uint8_t)(xo_freq >> 16);
90 ezradioCmd[5] = (uint8_t)(xo_freq >> 8);
91 ezradioCmd[6] = (uint8_t)(xo_freq);
104 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_PART_INFO];
106 ezradioCmd[0] = EZRADIO_CMD_ID_PART_INFO;
110 EZRADIO_CMD_REPLY_COUNT_PART_INFO,
113 if (ezradioReply != NULL)
115 ezradioReply->PART_INFO.CHIPREV = ezradioCmd[0];
116 ezradioReply->PART_INFO.PART = (((uint16_t)ezradioCmd[1] << 8) & 0xFF00) +
117 ((uint16_t)ezradioCmd[2] & 0x00FF);
118 ezradioReply->PART_INFO.PBUILD = ezradioCmd[3];
119 ezradioReply->PART_INFO.ID = (((uint16_t)ezradioCmd[4] << 8) & 0xFF00) +
120 ((uint16_t)ezradioCmd[5] & 0x00FF);
121 ezradioReply->PART_INFO.CUSTOMER = ezradioCmd[6];
122 ezradioReply->PART_INFO.ROMID = ezradioCmd[7];
135 uint8_t ezradioCmd[7u];
137 ezradioCmd[0] = EZRADIO_CMD_ID_START_TX;
138 ezradioCmd[1] = channel;
139 ezradioCmd[2] = condition;
140 ezradioCmd[3] = (uint8_t)(tx_len >> 8);
141 ezradioCmd[4] = (uint8_t)(tx_len);
142 ezradioCmd[5] = 0x00;
146 ezradioCmd[6] = 0x00;
161 void ezradio_start_rx(uint8_t channel, uint8_t condition, uint16_t rx_len, uint8_t next_state1, uint8_t next_state2, uint8_t next_state3)
164 uint8_t ezradioCmd[8u];
166 ezradioCmd[0] = EZRADIO_CMD_ID_START_RX;
167 ezradioCmd[1] = channel;
168 ezradioCmd[2] = condition;
169 ezradioCmd[3] = (uint8_t)(rx_len >> 8);
170 ezradioCmd[4] = (uint8_t)(rx_len);
171 ezradioCmd[5] = next_state1;
172 ezradioCmd[6] = next_state2;
173 ezradioCmd[7] = next_state3;
187 ezradio_cmd_reply_t *ezradioReply)
190 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_INT_STATUS];
192 ezradioCmd[0] = EZRADIO_CMD_ID_GET_INT_STATUS;
193 ezradioCmd[1] = ph_clr_pend;
194 ezradioCmd[2] = modem_clr_pend;
195 ezradioCmd[3] = chip_clr_pend;
199 EZRADIO_CMD_REPLY_COUNT_GET_INT_STATUS,
202 if (ezradioReply != NULL)
204 ezradioReply->GET_INT_STATUS.INT_PEND = ezradioCmd[0];
205 ezradioReply->GET_INT_STATUS.INT_STATUS = ezradioCmd[1];
206 ezradioReply->GET_INT_STATUS.PH_PEND = ezradioCmd[2];
207 ezradioReply->GET_INT_STATUS.PH_STATUS = ezradioCmd[3];
208 ezradioReply->GET_INT_STATUS.MODEM_PEND = ezradioCmd[4];
209 ezradioReply->GET_INT_STATUS.MODEM_STATUS = ezradioCmd[5];
210 ezradioReply->GET_INT_STATUS.CHIP_PEND = ezradioCmd[6];
211 ezradioReply->GET_INT_STATUS.CHIP_STATUS = ezradioCmd[7];
228 void ezradio_gpio_pin_cfg(uint8_t gpio0, uint8_t gpio1, uint8_t gpio2, uint8_t gpio3, uint8_t nirq, uint8_t sdo, uint8_t gen_config,
229 ezradio_cmd_reply_t *ezradioReply)
232 uint8_t ezradioCmd[EZRADIO_CMD_ARG_COUNT_GPIO_PIN_CFG];
234 ezradioCmd[0] = EZRADIO_CMD_ID_GPIO_PIN_CFG;
235 ezradioCmd[1] = gpio0;
236 ezradioCmd[2] = gpio1;
237 ezradioCmd[3] = gpio2;
238 ezradioCmd[4] = gpio3;
239 ezradioCmd[5] = nirq;
241 ezradioCmd[7] = gen_config;
245 EZRADIO_CMD_REPLY_COUNT_GPIO_PIN_CFG,
248 if (ezradioReply != NULL)
250 ezradioReply->GPIO_PIN_CFG.gpIO[0] = ezradioCmd[0];
251 ezradioReply->GPIO_PIN_CFG.gpIO[1] = ezradioCmd[1];
252 ezradioReply->GPIO_PIN_CFG.gpIO[2] = ezradioCmd[2];
253 ezradioReply->GPIO_PIN_CFG.gpIO[3] = ezradioCmd[3];
254 ezradioReply->GPIO_PIN_CFG.NIRQ = ezradioCmd[4];
255 ezradioReply->GPIO_PIN_CFG.SDO = ezradioCmd[5];
256 ezradioReply->GPIO_PIN_CFG.GEN_CONFIG = ezradioCmd[6];
275 uint8_t ezradioCmd[16u];
280 ezradioCmd[0] = EZRADIO_CMD_ID_SET_PROPERTY;
281 ezradioCmd[1] = group;
282 ezradioCmd[2] = num_props;
283 ezradioCmd[3] = start_prop;
285 va_start (argList, start_prop);
289 ezradioCmd[cmdIndex] = (uint8_t)va_arg (argList,
int);
305 uint8_t ezradioCmd[2u];
307 ezradioCmd[0] = EZRADIO_CMD_ID_CHANGE_STATE;
308 ezradioCmd[1] = next_state1;
313 #ifdef EZRADIO_DRIVER_EXTENDED_SUPPORT
322 uint8_t ezradioCmd[1u];
324 ezradioCmd[0] = EZRADIO_CMD_ID_NOP;
337 ezradio_cmd_reply_t *ezradioReply)
340 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_FIFO_INFO];
342 ezradioCmd[0] = EZRADIO_CMD_ID_FIFO_INFO;
343 ezradioCmd[1] = fifo;
347 EZRADIO_CMD_REPLY_COUNT_FIFO_INFO,
350 if (ezradioReply != NULL)
352 ezradioReply->FIFO_INFO.RX_FIFO_COUNT = ezradioCmd[0];
353 ezradioReply->FIFO_INFO.TX_FIFO_SPACE = ezradioCmd[1];
388 ezradio_cmd_reply_t *ezradioReply)
391 uint8_t ezradioCmd[16u];
393 ezradioCmd[0] = EZRADIO_CMD_ID_GET_PROPERTY;
394 ezradioCmd[1] = group;
395 ezradioCmd[2] = num_props;
396 ezradioCmd[3] = start_prop;
403 if (ezradioReply != NULL)
405 ezradioReply->GET_PROPERTY.DATA[0] = ezradioCmd[0];
406 ezradioReply->GET_PROPERTY.DATA[1] = ezradioCmd[1];
407 ezradioReply->GET_PROPERTY.DATA[2] = ezradioCmd[2];
408 ezradioReply->GET_PROPERTY.DATA[3] = ezradioCmd[3];
409 ezradioReply->GET_PROPERTY.DATA[4] = ezradioCmd[4];
410 ezradioReply->GET_PROPERTY.DATA[5] = ezradioCmd[5];
411 ezradioReply->GET_PROPERTY.DATA[6] = ezradioCmd[6];
412 ezradioReply->GET_PROPERTY.DATA[7] = ezradioCmd[7];
413 ezradioReply->GET_PROPERTY.DATA[8] = ezradioCmd[8];
414 ezradioReply->GET_PROPERTY.DATA[9] = ezradioCmd[9];
415 ezradioReply->GET_PROPERTY.DATA[10] = ezradioCmd[10];
416 ezradioReply->GET_PROPERTY.DATA[11] = ezradioCmd[11];
417 ezradioReply->GET_PROPERTY.DATA[12] = ezradioCmd[12];
418 ezradioReply->GET_PROPERTY.DATA[13] = ezradioCmd[13];
419 ezradioReply->GET_PROPERTY.DATA[14] = ezradioCmd[14];
420 ezradioReply->GET_PROPERTY.DATA[15] = ezradioCmd[15];
424 #ifdef EZRADIO_DRIVER_FULL_SUPPORT
435 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_FUNC_INFO];
437 ezradioCmd[0] = EZRADIO_CMD_ID_FUNC_INFO;
441 EZRADIO_CMD_REPLY_COUNT_FUNC_INFO,
444 if (ezradioReply != NULL)
446 ezradioReply->FUNC_INFO.REVEXT = ezradioCmd[0];
447 ezradioReply->FUNC_INFO.REVBRANCH = ezradioCmd[1];
448 ezradioReply->FUNC_INFO.REVINT = ezradioCmd[2];
449 ezradioReply->FUNC_INFO.FUNC = ezradioCmd[5];
462 uint8_t ezradioCmd[4u];
469 if (ezradioReply != NULL)
471 ezradioReply->FRR_A_READ.FRR_A_VALUE = ezradioCmd[0];
472 ezradioReply->FRR_A_READ.FRR_B_VALUE = ezradioCmd[1];
473 ezradioReply->FRR_A_READ.FRR_C_VALUE = ezradioCmd[2];
474 ezradioReply->FRR_A_READ.FRR_D_VALUE = ezradioCmd[3];
487 uint8_t ezradioCmd[4u];
494 if (ezradioReply != NULL)
496 ezradioReply->FRR_B_READ.FRR_B_VALUE = ezradioCmd[0];
497 ezradioReply->FRR_B_READ.FRR_C_VALUE = ezradioCmd[1];
498 ezradioReply->FRR_B_READ.FRR_D_VALUE = ezradioCmd[2];
499 ezradioReply->FRR_B_READ.FRR_A_VALUE = ezradioCmd[3];
512 uint8_t ezradioCmd[4u];
519 if (ezradioReply != NULL)
521 ezradioReply->FRR_C_READ.FRR_C_VALUE = ezradioCmd[0];
522 ezradioReply->FRR_C_READ.FRR_D_VALUE = ezradioCmd[1];
523 ezradioReply->FRR_C_READ.FRR_A_VALUE = ezradioCmd[2];
524 ezradioReply->FRR_C_READ.FRR_B_VALUE = ezradioCmd[3];
537 uint8_t ezradioCmd[4u];
544 if (ezradioReply != NULL)
546 ezradioReply->FRR_D_READ.FRR_D_VALUE = ezradioCmd[0];
547 ezradioReply->FRR_D_READ.FRR_A_VALUE = ezradioCmd[1];
548 ezradioReply->FRR_D_READ.FRR_B_VALUE = ezradioCmd[2];
549 ezradioReply->FRR_D_READ.FRR_C_VALUE = ezradioCmd[3];
561 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_REQUEST_DEVICE_STATE];
563 ezradioCmd[0] = EZRADIO_CMD_ID_REQUEST_DEVICE_STATE;
567 EZRADIO_CMD_REPLY_COUNT_REQUEST_DEVICE_STATE,
570 if (ezradioReply != NULL)
572 ezradioReply->REQUEST_DEVICE_STATE.CURR_STATE = ezradioCmd[0];
573 ezradioReply->REQUEST_DEVICE_STATE.CURRENT_CHANNEL = ezradioCmd[1];
585 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_READ_CMD_BUFF];
587 ezradioCmd[0] = EZRADIO_CMD_ID_READ_CMD_BUFF;
591 EZRADIO_CMD_REPLY_COUNT_READ_CMD_BUFF,
594 if (ezradioReply != NULL)
596 ezradioReply->READ_CMD_BUFF.BYTE[0] = ezradioCmd[0];
597 ezradioReply->READ_CMD_BUFF.BYTE[1] = ezradioCmd[1];
598 ezradioReply->READ_CMD_BUFF.BYTE[2] = ezradioCmd[2];
599 ezradioReply->READ_CMD_BUFF.BYTE[3] = ezradioCmd[3];
600 ezradioReply->READ_CMD_BUFF.BYTE[4] = ezradioCmd[4];
601 ezradioReply->READ_CMD_BUFF.BYTE[5] = ezradioCmd[5];
602 ezradioReply->READ_CMD_BUFF.BYTE[6] = ezradioCmd[6];
603 ezradioReply->READ_CMD_BUFF.BYTE[7] = ezradioCmd[7];
604 ezradioReply->READ_CMD_BUFF.BYTE[8] = ezradioCmd[8];
605 ezradioReply->READ_CMD_BUFF.BYTE[9] = ezradioCmd[9];
606 ezradioReply->READ_CMD_BUFF.BYTE[10] = ezradioCmd[10];
607 ezradioReply->READ_CMD_BUFF.BYTE[11] = ezradioCmd[11];
608 ezradioReply->READ_CMD_BUFF.BYTE[12] = ezradioCmd[12];
609 ezradioReply->READ_CMD_BUFF.BYTE[13] = ezradioCmd[13];
610 ezradioReply->READ_CMD_BUFF.BYTE[14] = ezradioCmd[14];
611 ezradioReply->READ_CMD_BUFF.BYTE[15] = ezradioCmd[15];
624 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_PH_STATUS];
626 ezradioCmd[0] = EZRADIO_CMD_ID_GET_PH_STATUS;
627 ezradioCmd[1] = ph_clr_pend;
631 EZRADIO_CMD_REPLY_COUNT_GET_PH_STATUS,
634 if (ezradioReply != NULL)
636 ezradioReply->GET_PH_STATUS.PH_PEND = ezradioCmd[0];
637 ezradioReply->GET_PH_STATUS.PH_STATUS = ezradioCmd[1];
650 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_MODEM_STATUS];
652 ezradioCmd[0] = EZRADIO_CMD_ID_GET_MODEM_STATUS;
653 ezradioCmd[1] = modem_clr_pend;
657 EZRADIO_CMD_REPLY_COUNT_GET_MODEM_STATUS,
660 if (ezradioReply != NULL)
662 ezradioReply->GET_MODEM_STATUS.MODEM_PEND = ezradioCmd[0];
663 ezradioReply->GET_MODEM_STATUS.MODEM_STATUS = ezradioCmd[1];
664 ezradioReply->GET_MODEM_STATUS.CURR_RSSI = ezradioCmd[2];
665 ezradioReply->GET_MODEM_STATUS.LATCH_RSSI = ezradioCmd[3];
666 ezradioReply->GET_MODEM_STATUS.ANT1_RSSI = ezradioCmd[4];
667 ezradioReply->GET_MODEM_STATUS.ANT2_RSSI = ezradioCmd[5];
668 ezradioReply->GET_MODEM_STATUS.AFC_FREQ_OFFSET = ((uint16_t)ezradioCmd[6] << 8) & 0xFF00;
669 ezradioReply->GET_MODEM_STATUS.AFC_FREQ_OFFSET |= (uint16_t)ezradioCmd[7] & 0x00FF;
682 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_CHIP_STATUS];
684 ezradioCmd[0] = EZRADIO_CMD_ID_GET_CHIP_STATUS;
685 ezradioCmd[1] = chip_clr_pend;
689 EZRADIO_CMD_REPLY_COUNT_GET_CHIP_STATUS,
692 if (ezradioReply != NULL)
694 ezradioReply->GET_CHIP_STATUS.CHIP_PEND = ezradioCmd[0];
695 ezradioReply->GET_CHIP_STATUS.CHIP_STATUS = ezradioCmd[1];
696 ezradioReply->GET_CHIP_STATUS.CMD_ERR_STATUS = ezradioCmd[2];
713 uint8_t ezradioCmd[EZRADIO_CMD_ARG_COUNT_PACKET_INFO];
715 ezradioCmd[0] = EZRADIO_CMD_ID_PACKET_INFO;
716 ezradioCmd[1] = field_number_mask;
717 ezradioCmd[2] = (uint8_t)(len >> 8);
718 ezradioCmd[3] = (uint8_t)(len);
721 ezradioCmd[4] = (uint8_t)((uint16_t)diff_len >> 8);
722 ezradioCmd[5] = (uint8_t)(diff_len);
726 EZRADIO_CMD_REPLY_COUNT_PACKET_INFO,
729 if (ezradioReply != NULL)
731 ezradioReply->PACKET_INFO.LENGTH = ((uint16_t)ezradioCmd[0] << 8) & 0xFF00;
732 ezradioReply->PACKET_INFO.LENGTH |= (uint16_t)ezradioCmd[1] & 0x00FF;
747 uint8_t ezradioCmd[1u];
749 ezradioCmd[0] = EZRADIO_CMD_ID_START_TX;
761 uint8_t ezradioCmd[1u];
763 ezradioCmd[0] = EZRADIO_CMD_ID_START_RX;
775 uint8_t ezradioCmd[1u];
777 ezradioCmd[0] = EZRADIO_CMD_ID_GET_INT_STATUS;
790 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_INT_STATUS];
792 ezradioCmd[0] = EZRADIO_CMD_ID_GET_INT_STATUS;
796 EZRADIO_CMD_REPLY_COUNT_GET_INT_STATUS,
799 if (ezradioReply != NULL)
801 ezradioReply->GET_INT_STATUS.INT_PEND = ezradioCmd[0];
802 ezradioReply->GET_INT_STATUS.INT_STATUS = ezradioCmd[1];
803 ezradioReply->GET_INT_STATUS.PH_PEND = ezradioCmd[2];
804 ezradioReply->GET_INT_STATUS.PH_STATUS = ezradioCmd[3];
805 ezradioReply->GET_INT_STATUS.MODEM_PEND = ezradioCmd[4];
806 ezradioReply->GET_INT_STATUS.MODEM_STATUS = ezradioCmd[5];
807 ezradioReply->GET_INT_STATUS.CHIP_PEND = ezradioCmd[6];
808 ezradioReply->GET_INT_STATUS.CHIP_STATUS = ezradioCmd[7];
820 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GPIO_PIN_CFG];
822 ezradioCmd[0] = EZRADIO_CMD_ID_GPIO_PIN_CFG;
826 EZRADIO_CMD_REPLY_COUNT_GPIO_PIN_CFG,
829 if (ezradioReply != NULL)
831 ezradioReply->GPIO_PIN_CFG.gpIO[0] = ezradioCmd[0];
832 ezradioReply->GPIO_PIN_CFG.gpIO[1] = ezradioCmd[1];
833 ezradioReply->GPIO_PIN_CFG.gpIO[2] = ezradioCmd[2];
834 ezradioReply->GPIO_PIN_CFG.gpIO[3] = ezradioCmd[3];
835 ezradioReply->GPIO_PIN_CFG.NIRQ = ezradioCmd[4];
836 ezradioReply->GPIO_PIN_CFG.SDO = ezradioCmd[5];
837 ezradioReply->GPIO_PIN_CFG.GEN_CONFIG = ezradioCmd[6];
849 uint8_t ezradioCmd[2u];
851 ezradioCmd[0] = EZRADIO_CMD_ID_GET_PH_STATUS;
865 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_PH_STATUS];
867 ezradioCmd[0] = EZRADIO_CMD_ID_GET_PH_STATUS;
871 EZRADIO_CMD_REPLY_COUNT_GET_PH_STATUS,
874 if (ezradioReply != NULL)
876 ezradioReply->GET_PH_STATUS.PH_PEND = ezradioCmd[0];
877 ezradioReply->GET_PH_STATUS.PH_STATUS = ezradioCmd[1];
888 uint8_t ezradioCmd[2u];
890 ezradioCmd[0] = EZRADIO_CMD_ID_GET_MODEM_STATUS;
904 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_MODEM_STATUS];
906 ezradioCmd[0] = EZRADIO_CMD_ID_GET_MODEM_STATUS;
910 EZRADIO_CMD_REPLY_COUNT_GET_MODEM_STATUS,
913 if (ezradioReply != NULL)
915 ezradioReply->GET_MODEM_STATUS.MODEM_PEND = ezradioCmd[0];
916 ezradioReply->GET_MODEM_STATUS.MODEM_STATUS = ezradioCmd[1];
917 ezradioReply->GET_MODEM_STATUS.CURR_RSSI = ezradioCmd[2];
918 ezradioReply->GET_MODEM_STATUS.LATCH_RSSI = ezradioCmd[3];
919 ezradioReply->GET_MODEM_STATUS.ANT1_RSSI = ezradioCmd[4];
920 ezradioReply->GET_MODEM_STATUS.ANT2_RSSI = ezradioCmd[5];
921 ezradioReply->GET_MODEM_STATUS.AFC_FREQ_OFFSET = ((uint16_t)ezradioCmd[6] << 8) & 0xFF00;
922 ezradioReply->GET_MODEM_STATUS.AFC_FREQ_OFFSET |= (uint16_t)ezradioCmd[7] & 0x00FF;
933 uint8_t ezradioCmd[2u];
935 ezradioCmd[0] = EZRADIO_CMD_ID_GET_CHIP_STATUS;
949 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_GET_CHIP_STATUS];
951 ezradioCmd[0] = EZRADIO_CMD_ID_GET_CHIP_STATUS;
955 EZRADIO_CMD_REPLY_COUNT_GET_CHIP_STATUS,
958 if (ezradioReply != NULL)
960 ezradioReply->GET_CHIP_STATUS.CHIP_PEND = ezradioCmd[0];
961 ezradioReply->GET_CHIP_STATUS.CHIP_STATUS = ezradioCmd[1];
962 ezradioReply->GET_CHIP_STATUS.CMD_ERR_STATUS = ezradioCmd[2];
974 uint8_t ezradioCmd[2u];
976 ezradioCmd[0] = EZRADIO_CMD_ID_FIFO_INFO;
977 ezradioCmd[1] = fifo;
990 uint8_t ezradioCmd[EZRADIO_CMD_REPLY_COUNT_FIFO_INFO];
992 ezradioCmd[0] = EZRADIO_CMD_ID_FIFO_INFO;
996 EZRADIO_CMD_REPLY_COUNT_FIFO_INFO,
999 if (ezradioReply != NULL)
1001 ezradioReply->FIFO_INFO.RX_FIFO_COUNT = ezradioCmd[0];
1002 ezradioReply->FIFO_INFO.TX_FIFO_SPACE = ezradioCmd[1];
void ezradio_get_modem_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_ph_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_property(uint8_t group, uint8_t num_props, uint8_t start_prop, ezradio_cmd_reply_t *ezradioReply)
void ezradio_write_tx_fifo(uint8_t numBytes, uint8_t *pTxData)
void ezradio_get_modem_status_fast_clear(void)
void ezradio_comm_ClearCTS(void)
void ezradio_fifo_info_fast_reset(uint8_t fifo)
void ezradio_change_state(uint8_t next_state1)
void ezradio_fifo_info_fast_read(ezradio_cmd_reply_t *ezradioReply)
void ezradio_hal_AssertShutdown(void)
void ezradio_frr_d_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_ph_status(uint8_t ph_clr_pend, ezradio_cmd_reply_t *ezradioReply)
This file contains the common API library of the EZRadio and EZRadioPRO families. ...
void ezradio_start_tx(uint8_t channel, uint8_t condition, uint16_t tx_len)
void ezradio_get_int_status(uint8_t ph_clr_pend, uint8_t modem_clr_pend, uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_ph_status_fast_clear(void)
void ezradio_frr_b_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_chip_status(uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply)
Ecode_t USTIMER_Init(void)
Activate and initialize the hardware timer used to pace the 1 microsecond delay functions.
void ezradio_part_info(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_modem_status(uint8_t modem_clr_pend, ezradio_cmd_reply_t *ezradioReply)
This file contains EZRadio HAL.
void ezradio_start_tx_fast(void)
void ezradio_frr_c_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_fifo_info(uint8_t fifo, ezradio_cmd_reply_t *ezradioReply)
void ezradio_read_rx_fifo(uint8_t numBytes, uint8_t *pRxData)
void ezradio_get_int_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_chip_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply)
General Purpose IO (GPIO) peripheral API.
void ezradio_start_rx(uint8_t channel, uint8_t condition, uint16_t rx_len, uint8_t next_state1, uint8_t next_state2, uint8_t next_state3)
void ezradio_get_packet_info(uint8_t field_number_mask, uint16_t len, int16_t diff_len, ezradio_cmd_reply_t *ezradioReply)
void ezradio_set_property(uint8_t group, uint8_t num_props, uint8_t start_prop,...)
void ezradio_get_chip_status_fast_clear(void)
uint8_t ezradio_comm_SendCmdGetResp(uint8_t cmdByteCount, uint8_t *pCmdData, uint8_t respByteCount, uint8_t *pRespData)
Ecode_t USTIMER_DeInit(void)
Deinitialize USTIMER driver.
void ezradio_frr_a_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_power_up(uint8_t boot_options, uint8_t xtal_options, uint32_t xo_freq)
void ezradio_gpio_pin_cfg_fast(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_int_status_fast_clear(void)
void ezradio_start_rx_fast(void)
void ezradio_comm_WriteData(uint8_t cmd, uint8_t pollCts, uint8_t byteCount, uint8_t *pData)
void ezradio_gpio_pin_cfg(uint8_t gpio0, uint8_t gpio1, uint8_t gpio2, uint8_t gpio3, uint8_t nirq, uint8_t sdo, uint8_t gen_config, ezradio_cmd_reply_t *ezradioReply)
Microsecond delay function API definition.
Ecode_t USTIMER_Delay(uint32_t usec)
Delay a given number of microseconds.
void ezradio_request_device_state(ezradio_cmd_reply_t *ezradioReply)
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_func_info(ezradio_cmd_reply_t *ezradioReply)
void ezradio_comm_SendCmd(uint8_t byteCount, uint8_t *pData)
void ezradio_hal_DeassertShutdown(void)
void ezradio_read_cmd_buff(ezradio_cmd_reply_t *ezradioReply)