EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
ezradio_api_lib.h
Go to the documentation of this file.
1 /**************************************************************************/
37 #ifndef _EZRADIO_API_LIB_H_
38 #define _EZRADIO_API_LIB_H_
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 /***************************************************************************/
49 /***************************************************************************/
54 /***************************************************************************/
61 #define EZRADIO_FIFO_SIZE 64
63 
66 typedef enum
67 {
74 
75 /* Minimal driver support functions */
76 void ezradio_reset(void);
77 void ezradio_power_up(uint8_t boot_options, uint8_t xtal_options, uint32_t xo_freq);
78 
79 void ezradio_part_info(ezradio_cmd_reply_t *ezradioReply);
80 
81 void ezradio_start_tx(uint8_t channel, uint8_t condition, uint16_t tx_len);
82 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);
83 
84 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);
85 
86 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,
87  ezradio_cmd_reply_t *ezradioReply);
88 
89 void ezradio_set_property( uint8_t group, uint8_t num_props, uint8_t start_prop, ... );
90 
91 void ezradio_change_state(uint8_t next_state1);
92 
93 #ifdef EZRADIO_DRIVER_EXTENDED_SUPPORT
94 /* Extended driver support functions */
95 void ezradio_nop(void);
96 
97 void ezradio_fifo_info(uint8_t fifo, ezradio_cmd_reply_t *ezradioReply);
98 
99 void ezradio_write_tx_fifo( uint8_t numbytes, uint8_t* pdata );
100 void ezradio_read_rx_fifo( uint8_t numbytes, uint8_t* prxdata );
101 
102 void ezradio_get_property(uint8_t group, uint8_t num_props, uint8_t start_prop, ezradio_cmd_reply_t *ezradioReply);
103 
104 #ifdef EZRADIO_DRIVER_FULL_SUPPORT
105 /* Full driver support functions */
106 
107 void ezradio_func_info(ezradio_cmd_reply_t *ezradioReply);
108 
109 void ezradio_frr_a_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply);
110 void ezradio_frr_b_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply);
111 void ezradio_frr_c_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply);
112 void ezradio_frr_d_read(uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply);
113 
114 void ezradio_request_device_state(ezradio_cmd_reply_t *ezradioReply);
115 void ezradio_read_cmd_buff(ezradio_cmd_reply_t *ezradioReply);
116 
117 void ezradio_get_ph_status(uint8_t ph_clr_pend, ezradio_cmd_reply_t *ezradioReply);
118 void ezradio_get_modem_status( uint8_t modem_clr_pend, ezradio_cmd_reply_t *ezradioReply);
119 void ezradio_get_chip_status( uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply);
120 
121 void ezradio_get_packet_info(uint8_t field_number_mask, uint16_t len, int16_t diff_len, ezradio_cmd_reply_t *ezradioReply);
122 
123 void ezradio_start_tx_fast( void );
124 void ezradio_start_rx_fast( void );
125 
127 void ezradio_get_int_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply);
128 
129 void ezradio_gpio_pin_cfg_fast(ezradio_cmd_reply_t *ezradioReply);
130 
132 void ezradio_get_ph_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply);
133 
135 void ezradio_get_modem_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply);
136 
138 void ezradio_get_chip_status_fast_clear_read(ezradio_cmd_reply_t *ezradioReply);
139 
140 void ezradio_fifo_info_fast_reset(uint8_t fifo);
141 void ezradio_fifo_info_fast_read(ezradio_cmd_reply_t *ezradioReply);
142 
143 #endif /* EZRADIO_DRIVER_FULL_SUPPORT */
144 #endif /* EZRADIO_DRIVER_EXTENDED_SUPPORT */
145 
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 #endif //_EZRADIO_API_LIB_H_
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 *pdata)
void ezradio_get_modem_status_fast_clear(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_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)
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)
void ezradio_part_info(ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_modem_status(uint8_t modem_clr_pend, ezradio_cmd_reply_t *ezradioReply)
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)
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)
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_nop(void)
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)
void ezradio_reset(void)
void ezradio_request_device_state(ezradio_cmd_reply_t *ezradioReply)
void ezradio_func_info(ezradio_cmd_reply_t *ezradioReply)
EZRADIO_ConfigRet_t
void ezradio_read_cmd_buff(ezradio_cmd_reply_t *ezradioReply)