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

Function setregister

VScode Platformio/src/analyzer.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void setregister(byte r, byte v) {
42 digitalWrite(CSN, LOW);
43 SPI.transfer((r & 0x1F) | 0x20);
44 SPI.transfer(v);
45 digitalWrite(CSN, HIGH);
46}
47
48void powerup(void) {
49 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