Receive_Plugin

Detailed Description

Receive plugin, see Plugin System Layer for detailed documentation.

.

Data Structures

struct  EZRADIODRV_PacketRxHandle
 EzRadio receive plug-in instance initialization and handler structure.
 

Macros

#define EZRADIODRV_RECEIVE_PLUGIN_INIT_DEFAULT
 Configuration data for EzRadio receive plug-in.
 

Typedefs

typedef struct EZRADIODRV_PacketRxHandle EZRADIODRV_PacketRxHandle_t
 EzRadio receive plug-in instance initialization and handler structure.
 

Functions

Ecode_t ezradioStartRx (EZRADIODRV_Handle_t radioHandle)
 Set Radio to RX mode, packet length is always coming from the radio configuration.
 

Macro Definition Documentation

#define EZRADIODRV_RECEIVE_PLUGIN_INIT_DEFAULT
Value:
{ /* Packet RX */ \
NULL, /* CallBack */ \
RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER, /* Channel */ \
NULL, /* Packet buffer */ \
},

Configuration data for EzRadio receive plug-in.

Definition at line 72 of file ezradio_receive_plugin.h.

Function Documentation

Ecode_t ezradioStartRx ( EZRADIODRV_Handle_t  radioHandle)

Set Radio to RX mode, packet length is always coming from the radio configuration.

Parameters
radioHandleHandler of the EzRadio driver instance where packet buffer, callback and channel configurations are set.
Returns
ECODE_EMDRV_EZRADIODRV_OK on success. On failure an appropriate EZRADIODRV Ecode_t is returned.

Definition at line 62 of file ezradio_receive_plugin.c.

References EZRADIODRV_PacketRxHandle::channel, ECODE_EMDRV_EZRADIODRV_OK, ezradio_start_rx(), and EZRADIODRV_HandleData::packetRx.