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

Function setregister

nRFBox_V2/analyzer.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void setregister(byte r, byte v) {
44 digitalWrite(CSN, LOW);
45 SPI.transfer((r & 0x1F) | 0x20);
46 SPI.transfer(v);
47 digitalWrite(CSN, HIGH);
48}
49
50void powerup(void) {
51 setregister(NRF24_CONFIG, getregister(NRF24_CONFIG) | 0x02);

Callers 4

powerupFunction · 0.70
powerdownFunction · 0.70
setrxFunction · 0.70
ScanChannelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected