Skip to content

Commit

Permalink
Clear Channel Assesment if RSSI below Threshold and show it on GDO0 i…
Browse files Browse the repository at this point in the history
…n RX mode
  • Loading branch information
ghoti57 committed May 21, 2024
1 parent c0e10b9 commit b393ac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/cc1101/cc1101.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void cc_enter_idle_mode(void) {
void cc_enter_rx_mode(void) {
while ( CC_STATE( cc_strobe( CC_SIDLE ) ) != CC_STATE_IDLE ){}

cc_write( CC_IOCFG0, 0x2E ); // GDO0 not needed
cc_write( CC_IOCFG0, 0x09 ); // Show Clear Channel Assessment
cc_write( CC_PKTCTRL0, 0x32 ); // Asynchronous, infinite packet

cc_strobe( CC_SFRX );
Expand Down
2 changes: 1 addition & 1 deletion components/cc1101/cc1101_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static inline uint8_t cc1101_cfg_default( uint8_t *cfg ) {
0xF8, // CC_MDMCFG0 Channel spacing 199.951 KHz
0x50, // CC_DEVIATN
0x07, // CC_MCSM2 default
0x30, // CC_MCSM1 default
0x10, // CC_MCSM1 CCA if RSSI below threshold
0x18, // CC_MCSM0 Auto-calibrate on Idle to RX+TX, Power on timeout 149-155 uS
0x16, // CC_FOCCFG default
0x6c, // CC_BSCFG default
Expand Down

0 comments on commit b393ac9

Please sign in to comment.