EFM32 Zero Gecko Software Documentation  efm32zg-doc-4.2.1
Auto_ACK_Plugin

Auto acknowledge plugin, see Plugin System Layer on page EZRADIODRV EzRadio Peripheral Interface driver for detailed documentation.

. More...

Data Structures

struct  EZRADIODRV_AutoAckHandle
 EzRadio auto acknowledge plug-in instance initialization and handler structure. More...
 

Macros

#define EZRADIODRV_AUTO_ACK_PLUGIN_INIT_DEFAULT
 Configuration data for EzRadio auto acknowledge plug-in. More...
 

Typedefs

typedef enum EZRADIODRV_AutoAckMode EZRADIODRV_AutoAckMode_t
 EzRadio auto acknowledge mode.
 
typedef enum EZRADIODRV_AutoAckPacketMode EZRADIODRV_AutoAckPacketMode_t
 EzRadio packet mode for auto acknowledge plug-in.
 
typedef struct EZRADIODRV_AutoAckHandle EZRADIODRV_AutoAckHandle_t
 EzRadio auto acknowledge plug-in instance initialization and handler structure.
 

Enumerations

enum  EZRADIODRV_AutoAckMode {
  ezradiodrvAutoAckDisabled = 0,
  ezradiodrvAutoAckImmediate = 1,
  ezradiodrvAutoAckSkipOne = 2
}
 EzRadio auto acknowledge mode. More...
 
enum  EZRADIODRV_AutoAckPacketMode {
  ezradiodrvAutoAckPktDefault = 0,
  ezradiodrvAutoAckPktCustom = 1
}
 EzRadio packet mode for auto acknowledge plug-in. More...
 

Functions

void ezradioEnableAutoAck (EZRADIODRV_AutoAckHandle_t *autoAckHandle)
 Enables auto acknowledge sending feature. More...
 
void ezradioDisableAutoAck (EZRADIODRV_AutoAckHandle_t *autoAckHandle)
 Disables auto acknowledge sending feature. More...
 
void ezradioSkipAutoAck (EZRADIODRV_AutoAckHandle_t *autoAckHandle)
 Configures auto acknowledge sending feature so that there will be no acknowledge transmitted to the next received packet. This is usefull is both nodes of a link uses auto acknowledgement. More...
 

Detailed Description

Macro Definition Documentation

#define EZRADIODRV_AUTO_ACK_PLUGIN_INIT_DEFAULT
Value:
{ /* Auto acknowledge */ \
NULL, /* CallBack */ \
ezradiodrvAutoAckPktDefault, /* Ack packet mode */ \
{ /* Packet length config */ \
ezradiodrvTransmitLenghtDefault, /* Default length mode */ \
0, /* Packet length */ \
RADIO_CONFIG_DATA_FIELD_LENGTH, /* Field lengths */ \
}, \
NULL, /* Packet buffer */ \
0, /* Packet ID */ \
},
Auto acknowledge uses the same transmission configuration as the actual configuration.
Auto acknowledge transmission disabled.

Definition at line 97 of file ezradio_auto_ack_plugin.h.

Enumeration Type Documentation

Enumerator
ezradiodrvAutoAckDisabled 

Auto acknowledge transmission disabled.

ezradiodrvAutoAckImmediate 

Immediate acknowledge transmission.

ezradiodrvAutoAckSkipOne 

Acknowledge transmission is skipped for one cycle, eg. not to transmit ACK if ACK is received.

Definition at line 66 of file ezradio_auto_ack_plugin.h.

Enumerator
ezradiodrvAutoAckPktDefault 

Auto acknowledge uses the same transmission configuration as the actual configuration.

ezradiodrvAutoAckPktCustom 

Auto acknowledge uses custom packet configuration.

Definition at line 74 of file ezradio_auto_ack_plugin.h.

Function Documentation

void ezradioEnableAutoAck ( EZRADIODRV_AutoAckHandle_t autoAckHandle)
Parameters
autoAckHandleAuto acknowledge plug-in handler.
Returns
ECODE_EMDRV_EZRADIODRV_OK on success. On failure an appropriate EZRADIODRV Ecode_t is returned.

Definition at line 53 of file ezradio_auto_ack_plugin.c.

References EZRADIODRV_AutoAckHandle::ackMode, and ezradiodrvAutoAckImmediate.

void ezradioDisableAutoAck ( EZRADIODRV_AutoAckHandle_t autoAckHandle)
Parameters
autoAckHandleAuto acknowledge plug-in handler.
Returns
ECODE_EMDRV_EZRADIODRV_OK on success. On failure an appropriate EZRADIODRV Ecode_t is returned.

Definition at line 67 of file ezradio_auto_ack_plugin.c.

References EZRADIODRV_AutoAckHandle::ackMode, and ezradiodrvAutoAckDisabled.

void ezradioSkipAutoAck ( EZRADIODRV_AutoAckHandle_t autoAckHandle)
Parameters
autoAckHandleAuto acknowledge plug-in handler.
Returns
ECODE_EMDRV_EZRADIODRV_OK on success. On failure an appropriate EZRADIODRV Ecode_t is returned.

Definition at line 83 of file ezradio_auto_ack_plugin.c.

References EZRADIODRV_AutoAckHandle::ackMode, and ezradiodrvAutoAckSkipOne.