EFR32 Blue Gecko 13 Software Documentation  efr32bg13-doc-5.1.2
ezradio_receive_plugin.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef EZRADIO_RECEIVE_PLUGIN_H_
35 #define EZRADIO_RECEIVE_PLUGIN_H_
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /***************************************************************************/
46 /***************************************************************************/
51 /***************************************************************************/
56 /***************************************************************************/
63 #if defined( EZRADIO_PLUGIN_RECEIVE )
64 
67 {
69  uint8_t channel;
70  uint8_t * pktBuf;
72 
73 
75 
77 #define EZRADIODRV_RECEIVE_PLUGIN_INIT_DEFAULT \
78 { /* Packet RX */ \
79  NULL, /* CallBack */ \
80  RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER, /* Channel */ \
81  NULL, /* Packet buffer */ \
82 },
83 
84 #else //#if defined( EZRADIO_PLUGIN_RECEIVE )
85 
86 #define EZRADIODRV_RECEIVE_PLUGIN_INIT_DEFAULT
87 
88 #endif //#if defined( EZRADIO_PLUGIN_RECEIVE )
89 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* EZRADIO_RECEIVE_PLUGIN_H_ */
uint8_t * pktBuf
Pointer to the receive buffer.
uint8_t channel
Reception channel.
Ecode_t ezradioStartRx(EZRADIODRV_Handle_t radioHandle)
Set Radio to RX mode, packet length is always coming from the radio configuration.
uint32_t Ecode_t
Typedef for API function error code return values.
Definition: ecode.h:51
void(* EZRADIODRV_Callback_t)(EZRADIODRV_Handle_t handle, Ecode_t status)
EZRADIODRV feature callback function interface.
EZRADIODRV_Callback_t userCallback
User callback.
EzRadio receive plug-in instance initialization and handler structure.
struct EZRADIODRV_PacketRxHandle EZRADIODRV_PacketRxHandle_t
EzRadio receive plug-in instance initialization and handler structure.