Tool/software: Code Composer Studio
Hello everyone,
Actually I'm trying to define custom payload for cc1310 in code composer studio. I have used rfEasyLinkTx example from ti\tirtos_cc13xx_cc26xx_2_21_00_06\examples\TI\CC1310DK_7XD\rfEasyLinkTx, but in this case they have used rand() function to generate random string.
while(1) {
EasyLink_TxPacket txPacket = { {0}, 0, 0, {0} };
/* Create packet with incrementing sequence number and random payload */
txPacket.payload[0] = (uint8_t)(seqNumber >> 8);
txPacket.payload[1] = (uint8_t)(seqNumber++);
RF_cmdPropRadioDivSetup.preamConf.nPreamBytes = 0x4;
RF_cmdPropRadioDivSetup.formatConf.nSwBits = 0x20;
RF_cmdPropTx.pktConf.bUseCrc = 0x1;
uint8_t i;
for (i = 2; i < RFEASYLINKTXPAYLOAD_LENGTH; i++)
{
txPacket.payload[i] = rand();
}
I'm trying to assign string to each sensor, so that whenever sensor trigger they sends that(assigned) string in response to the receiver on opposite end.
I have tried by writing string in form array but it gives me error.
Also, I can not find example of GPIO in tirtos_cc13xx_cc26xx_2_21_00_06\examples\TI\CC1310DK_7XD, please tell me where can I find it.
If anybody knows how to do it, please help me out.
Thanks in advance for the help.
I'm currently using ccs v7.2.