34 #ifndef EZRADIO_TRANSMIT_PLUGIN_H_
35 #define EZRADIO_TRANSMIT_PLUGIN_H_
64 #define ECODE_EMDRV_EZRADIODRV_TRANSMIT_FAILED ( ECODE_EMDRV_EZRADIODRV_TRANSMIT_PLUGIN_BASE | 0x00000001 )
66 #if defined(EZRADIO_PLUGIN_TRANSMIT)
80 #if defined(EZRADIO_PLUGIN_AUTO_ACK) && defined(EZRADIO_PLUGIN_RECEIVE)
123 #define EZRADIODRV_TRANSMIT_PLUGIN_INIT_DEFAULT \
127 ezradiodrvTransmitLenghtDefault, \
131 RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER, \
132 ezradiodrvPacketTypeNormal, \
136 #else //#if defined( EZRADIO_PLUGIN_TRANSMIT )
137 #define EZRADIODRV_TRANSMIT_PLUGIN_INIT_DEFAULT
138 #endif //#if defined( EZRADIO_PLUGIN_TRANSMIT )
Ecode_t ezradioStartTransmitDefault(EZRADIODRV_Handle_t radioHandle, uint8_t *pioRadioPacket)
Start a default transmission using the packet information previously set to radioHandle. Depending on the information in the radioHandle parameter the function decides which transmission function has to be called.
uint8_t f1
Field 1 length.
uint8_t f5
Field 5 length.
EZRADIODRV_TransmitPacketType
EzRadio transmit packet type.
uint8_t channel
Transmission channel.
Auto acknowledge packet type.
EZRADIODRV_TransmitLengthMode_t lenMode
Length mode.
struct EZRADIODRV_PacketLengthConfig EZRADIODRV_PacketLengthConfig_t
EzRadio transmit packet length configuration structure.
EzRadio transmit packet length configuration structure.
EZRADIODRV_FieldLength_t fieldLen
Field lengths.
Ecode_t ezradioStartTransmitSmart(EZRADIODRV_Handle_t radioHandle, EZRADIODRV_PacketLengthConfig_t pktLengthConf, uint8_t *pioRadioPacket)
Start a smart transmission. Depending on the information in the pktLengthConf parameter the function ...
Ecode_t ezradioStartTransmitBasic(EZRADIODRV_Handle_t radioHandle, uint16_t packetLength, uint8_t *pioRadioPacket)
Start basic transmission. Radio transmits with data only in the first field in this case...
Transmit packet length is defined by the application for field1 only.
EZRADIODRV_Callback_t userCallback
User callback.
EZRADIODRV_TransmitLengthMode
EzRadio transmit packet length mode.
uint32_t Ecode_t
Typedef for API function error code return values.
Transmit packet length is defined in the generated configuration.
EzRadio transmit plug-in instance initialization and handler structure.
struct EZRADIODRV_FieldLength EZRADIODRV_FieldLength_t
uint8_t f4
Field 4 length.
void(* EZRADIODRV_Callback_t)(EZRADIODRV_Handle_t handle, Ecode_t status)
EZRADIODRV feature callback function interface.
Transmit packet length is defined by the application for multiple fields.
uint16_t pktLen
Packet length.
Ecode_t ezradioStartTransmitConfigured(EZRADIODRV_Handle_t radioHandle, uint8_t *pioRadioPacket)
Start transmission using the packet parameters from the generated configuration header file...
Ecode_t ezradioStartTransmitCustom(EZRADIODRV_Handle_t radioHandle, EZRADIODRV_PacketLengthConfig_t pktLengthConf, uint8_t *pioRadioPacket)
Start transmission using the packet parameters from pktLengthConf.
EZRADIODRV_TransmitPacketType_t pktType
Packet type.
uint8_t f2
Field 2 length.
enum EZRADIODRV_TransmitPacketType EZRADIODRV_TransmitPacketType_t
EzRadio transmit packet type.
enum EZRADIODRV_TransmitLengthMode EZRADIODRV_TransmitLengthMode_t
EzRadio transmit packet length mode.
EZRADIODRV_PacketLengthConfig_t lenConfig
Packet length configuration.
uint8_t f3
Field 3 length.
struct EZRADIODRV_PacketTxHandle EZRADIODRV_PacketTxHandle_t
EzRadio transmit plug-in instance initialization and handler structure.