English
Language : 

ZAURA Datasheet, PDF (47/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
35
ZAURA_RF_SendPkt
Description The RfSendPkt macro sends data to remote node(s) using a packet buf-
fer structure. This packet buffer structure can be obtained from the
ZAURA_RF_Receive API or defined within application memory
space. The calling application retains control of the packet buffer after
this function returns. The data will be transferred reliably or unreliably,
depending on the values of the Dst and Ctrl members of the packet buf-
fer structure (see ZAURA_RF_Transmit on page 30 for more infor-
mation).
Syntax
ZAURA_RF_STATUS ZAURA_RF_SendPkt(
ZAURA_RF_PKT_BUF * pBuf)
Parameters
pBuf
A pointer to a packet buffer structure that contains the information to be
transmitted.
Returns
The return value depends on the type of packet that was sent.
For unreliable DATA transmissions (including broadcast):
• ZAURA_RF_SUCCESS is returned if the transmissions did not
encounter any errors. This only means it was transmitted, not that it
was received
• TX_CHANNEL_BUSY is returned if the channel was in use. (See
Channel Access Rules for more information)
For Reliable SDATA transmissions:
• ZAURA_RF_SUCCESS is returned if the peer node acknowledged
and accepted the frame
• TX_CHANNEL_BUSY is returned if the channel was in use (See
Channel Access Rules for more information)
• ZAURA_RF_TX_NOT_ACK is returned if no acknowledgement
was received. This could be either the packet did not arrive at desti-
nation or the ACK was note received
• RF_TX_NAK is returned if the node received the frame but
rejected the frame because no buffer space was available to hold the
data
RM006003-1011
ZAURA_RF_SendPkt