I want to senddata continuous by radio, So I type the code below, Is right?
In main() function:
RF_postCmd(rfHandle, (RF_Op*)RF_pCmdTxHS, RF_PriorityNormal, &tx_callback, RF_EventLastCmdDone);
callback function:
static void tx_callback(RF_Handle h, RF_CmdHandle ch, RF_EventMask e) { if (e & RF_EventLastCmdDone) { /* For TC_HSM, the packet length and a pointer to the first byte in the payload can be found as follows: * * uint8_t packetLength = ((*(uint8_t*)(¤tDataEntry->data + 1)) << 8) | (*(uint8_t*)(¤tDataEntry->data)); * uint8_t* packetDataPointer = (uint8_t*)(¤tDataEntry->data + 2); * * For the other test cases (TC_LRM, TC_OOK and TC_FSK), the packet length and first payload byte is found here: * * uint8_t packetLength = *(uint8_t*)(¤tDataEntry->data); * uint8_t* packetDataPointer = (uint8_t*)(¤tDataEntry->data + 1); */ packetTransfered = true; } }