MCPcopy Create free account
hub / github.com/cifertech/nRFBox / scanChannels

Function scanChannels

nRFBox/scanner.cpp:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void scanChannels(void)
84{
85 disable();
86 for( int j=0 ; j<50 ; j++)
87 {
88 for( int i=0 ; i<CHANNELS ; i++)
89 {
90 setRegister(_NRF24_RF_CH,(128*i)/CHANNELS);
91
92 setRX();
93
94 delayMicroseconds(40);
95
96 disable();
97
98 if( getRegister(_NRF24_RPD)>0 ) ch[i]++;
99 }
100 }
101}
102
103void outputChannels(void)
104{

Callers 1

scannerLoopFunction · 0.70

Calls 4

disableFunction · 0.70
setRegisterFunction · 0.70
setRXFunction · 0.70
getRegisterFunction · 0.70

Tested by

no test coverage detected