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

Function ScanChannels

VScode Platformio/src/analyzer.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void ScanChannels(void) {
72 DIsable();
73 // for (int j = 0; j < 10; j++) {
74 for (int i = 0; i < CHANNELS; i++) {
75 setregister(NRF24_RF_CH, (128 * i) / CHANNELS);
76 setrx();
77 delayMicroseconds(40);
78 DIsable();
79 if (getregister(NRF24_RPD) > 0) CHannel[i]++;
80 }
81 // }
82}
83
84
85void writeRegister(uint8_t reg, uint8_t value) {

Callers 1

analyzerLoopFunction · 0.70

Calls 4

DIsableFunction · 0.70
setregisterFunction · 0.70
setrxFunction · 0.70
getregisterFunction · 0.70

Tested by

no test coverage detected