/* ********************************************************************************************************* * WF_TxSendCompleteDataPacket() * * Description : Allocates MRF24WB0M memory, writes out the packet to that memory, and directs the MRF24WB0M * to transmit the packet. * * Argument(s) : p_txData - pointer to Tx data packet * length - length, in bytes, of Tx data packet * * Return(s) : Error code * * Caller(s) : Application * * Notes: : None * ********************************************************************************************************* */ void WF_TxSendCompleteDataPacket(uint8_t *p_txData, uint16_t length) { WF_TxDataAllocateBuffer(length); WF_TxDataWrite(p_txData, length, 0); WF_TxDataSendPacket(length); }
/* ********************************************************************************************************* * WF_TxSendCompleteDataPacket() * * Description : Allocates MRF24WB0M memory, writes out the packet to that memory, and directs the MRF24WB0M * to transmit the packet. * * Argument(s) : p_txData - pointer to Tx data packet * length - length, in bytes, of Tx data packet * * Return(s) : Error code * * Caller(s) : Application * * Notes: : None * ********************************************************************************************************* */ void WF_TxSendCompleteDataPacket(UINT8 *p_txData, UINT16 length) { WF_TxDataAllocateBuffer(length); WF_TxDataWrite(p_txData, length, 0); WF_TxDataSendPacket(length); }