return 0;
}
+void cc1101_enter_fstxon_state(void)
{
+ uint8_t status = (cc1101_read_status() & CC1101_STATE_MASK);
+ if (status != CC1101_STATE_FSTON) {
+ if ((status != CC1101_STATE_TX) && (status != CC1101_STATE_RX)) {
+ cc1101_send_cmd(CC1101_CMD(state_idle));
+ }
+ cc1101_send_cmd(CC1101_CMD(start_freq_synth));
+ }
}
}
+/* Request a calibration */
+void cc1101_send_calibration_request(void)
+{
+ cc1101_send_cmd(CC1101_CMD(synth_calibration));
+}
+
/***************************************************************************** */
/* Rx fifo state :
* Return 0 when fifo is empty, or number of remaining bytes when non empty and no
/***************************************************************************** */
/* Enter Rx mode */
void cc1101_enter_rx_mode(void);
+/* Prepare for entering Tx mode by moving to FSTXON state */
+void cc1101_enter_fstxon_state(void);
/***************************************************************************** */
/* Return the link quality indication based in the last packet received */
uint8_t cc1101_get_link_quality(void);
+/* Request a calibration */
+void cc1101_send_calibration_request(void);
/***************************************************************************** */
/* Rx fifo state :