I've set GDO2 to mode 0x09 (Clear Channel Assessment, high if RSSI is below a threshold), CCA_MODE[1:0] = 01.
Is it OK to have a Tx flow from the RX state something like:
volatile bool CCA_state;
[Load the TxFIFO]
CCA_state = Board_GD02_Radio_input();
while (!CCA_state) // Wait until Channel Clear Assessment shows clear
CCA_state = Board_GD02_Radio_input();
CC1101_Status_byte = CC1101_cmd_strobe (CC1101_Cmd_Strobe_STX, Write);
I'm getting some erratic behaviour with this so I guess I'm not understanding what's going on. Does the GDO pin give a constant reading of the radio environment when in RX state?