/* Set GPIO0 for RSSI Interrupt/cca */
Txbuf[0] = cmd_gpio_pin_cfg;
TXBUF[1] = 27; /* Gpio[0] = 27:CCA or 37:cca_latch */
TXBUF[2] = 0; /* Gpio[1] = DONOTHING */
TXBUF[3] = 0; /* Gpio[2] = DONOTHING */
TXBUF[4] = 0; /* Gpio[3] = DONOTHING */
TXBUF[5] = 0; /* NIRQ = Behavior Not modified */
TXBUF[6] = 0; /* SDO = Behavior not modified*/
TXBUF[7] = 0; /* Gen_config = GPIO outputs'll has the highest drive strength*/
Si446x_sendcommand (8, TXBUF);
Si446x_waitforcts ();
/* Set RSSI threshold */
Txbuf[0] = Cmd_set_property;
TXBUF[1] = Prop_modem_group;
TXBUF[2] = 0x03; /* num of Property */
TXBUF[3] = prop_modem_rssi_thresh;/* start Address */
TXBUF[4] = 30; /* Modem_rssi_thresh:if <, CCA GPIO0 becomes low */
TXBUF[5] = 0x0c; /* Modem_rssi_jump_thresh:default */
TXBUF[6] = 0x22; /* Modem_rssi_control:check thresh after latch, latch RSSI when sync Word is detected */
Si446x_sendcommand (5, TXBUF);
Si446x_waitforcts ();
si4438 CCA Listening