1.4.3.20 PAL_DataRequest Function
C
uint8_t PAL_DataRequest(PAL_MSG_REQUEST_DATA *pData);
Summary
Request to transmit a message.
Description
This functions is used to initiate the transmission process of a PPDU (PHY Protocol Data Unit) to the medium indicated in the transmission information structure.
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
requestMsg | Callbacks structure |
Returns
PAL Transmission results.
Example
uint8_t result=PAL_TX_RESULT_SUCCESS;
PAL_MSG_REQUEST_DATA requestMsg;
uint8_t msg[30];
requestMsg.dataBuf = &msg;
requestMsg.timeDelay = 10000;
requestMsg.dataLength = sizeof(msg);
requestMsg.pch = 16;
requestMsg.buffIdentifier = 2;
requestMsg.attLevel = 0;
requestMsg.scheme = PAL_PLC_DBPSK_R;
requestMsg.disableRx = 0;
requestMsg.mode = PAL_MODE_TYPE_B;
requestMsg.timeMode = PAL_TX_MODE_ABSOLUTE;
requestMsg.numSenses = 3;
requestMsg.senseDelayMs = 3;
result = PAL_DataRequestTransmission(&requestMsg);
Remarks
None