si4438 CCA Listening

Source: Internet
Author: User

/* 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.