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

Function readRegister

nRFBox_V2/analyzer.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96uint8_t readRegister(uint8_t reg) {
97 digitalWrite(CSN, LOW);
98 SPI.transfer(reg & 0x1F);
99 uint8_t result = SPI.transfer(0x00);
100 digitalWrite(CSN, HIGH);
101 return result;
102}
103
104void setChannel(uint8_t CHannel) {
105 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