Other Parts Discussed in Thread: CC1101
Hi, all
I can not understand how to properly configure the registers for using the TX-in-CCA mode.
This is my code that should initialize the transfer:
void transmitInputsState(void){
rfPacket->srcAddr[0] = selfAddress[0];
rfPacket->srcAddr[1] = selfAddress[1];
rfPacket->srcAddr[2] = selfAddress[2];
rfPacket->srcAddr[3] = selfAddress[3];
rfPacket->type = 0;
rfPacket->data = transmitState;
// RFST = RFST_SRX;
// while(MARCSTATE != MARC_STATE_RX) {}
// workMode = WM_RF_RX;
rfdCount = 0;
RFST = RFST_STX;
while(MARCSTATE != MARC_STATE_TX) {}
workMode = WM_RF_TX;
P1 &= ~LED_TXRX;
}
If the lines are uncommented, the program does not go further
while(MARCSTATE != MARC_STATE_TX) {}
if switching occurs from IDLE mode, then the transmitter works normally.
I know something is missing, but I can't understand what.
Please give me a link to the application note for using the CC1110 with CCA, or code example.
BR,
Yakov