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

Function readRegister

VScode Platformio/src/analyzer.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92uint8_t readRegister(uint8_t reg) {
93 digitalWrite(CSN, LOW);
94 SPI.transfer(reg & 0x1F);
95 uint8_t result = SPI.transfer(0x00);
96 digitalWrite(CSN, HIGH);
97 return result;
98}
99
100void setChannel(uint8_t CHannel) {
101 writeRegister(NRF24_RF_CH, CHannel);

Callers 3

powerUPFunction · 0.70
powerDOWNFunction · 0.70
carrierDetectedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected