Using the high speed mode API on CC2650 I cannot get the optional address field to work - I am using variable length packets, relying on the transmit command to add the packet length and putting a 2-byte address field right at the start of the data in the packet. Is this correct?
If I set pktConf.addressMode to 0 (don't check) in the HS receive command it receives the packets exactly as I would expect, taking the length that was added by the RF processor and including the address at the start of the data, but if I set pktConf.addressMode to 1 (accept programmed address only) the receiver never receives any packets.
On transmitter
Transmit command is struct rfc_CMD_HS_TX_s
with .pktConf.bVarLen = 1;
Data buffer is struct rfc_dataEntryGeneral_s
with .length = 200; //should this include the address field?
data = {0x07, 0xe1, ...} // address 0x07e1 (example for test)
On receiver
Receive command is struct rfc_CMD_HS_RX_s with
.pktConf.bVarLen = 1;
.pktConf.addressMode = 1; // accept correct address only
.address0 = 0x07e1;
.address1 = 0xe107; // just in case it is a byte order issue
No data is received. Changing pktConf.addressMode to 0 receives data just fine.