mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-18 20:28:59 +00:00
Merge pull request #1152 from bkozak-scanimetrics/cc26xx_en_correlator_filt
turned on correlator in radio packet filter
This commit is contained in:
commit
98afdd4d73
@ -892,10 +892,11 @@ init_rf_params(void)
|
|||||||
/* Configure CCA settings */
|
/* Configure CCA settings */
|
||||||
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaOpt) =
|
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaOpt) =
|
||||||
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnEnergy, 1) |
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnEnergy, 1) |
|
||||||
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnCorr, 0) |
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnCorr, 1) |
|
||||||
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnSync, 0) |
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnSync, 0) |
|
||||||
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrOp, 0) |
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrOp, 1) |
|
||||||
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaSyncOp, 0);
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaSyncOp, 1) |
|
||||||
|
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrThr, 3);
|
||||||
/* Set CCA RSSI Threshold, 0xA6 corresponds to -90dBm (two's comp.)*/
|
/* Set CCA RSSI Threshold, 0xA6 corresponds to -90dBm (two's comp.)*/
|
||||||
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaRssiThr) = 0xA6;
|
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaRssiThr) = 0xA6;
|
||||||
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, numExtEntries) = 0x00;
|
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, numExtEntries) = 0x00;
|
||||||
|
Loading…
Reference in New Issue
Block a user