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

Function scanChannels

VScode Platformio/src/scanner.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void scanChannels(void) {
77 disable();
78 for (int j = 0; j < 55; j++) {
79 for (int i = 0; i < CHANNELS; i++) {
80 setRegister(_NRF24_RF_CH, (128 * i) / CHANNELS);
81 setRX();
82 delayMicroseconds(40);
83 disable();
84 if (getRegister(_NRF24_RPD) > 0) channel[i]++;
85 }
86 }
87}
88
89void outputChannels(void) {
90 int norm = 0;

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