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

Function getRegister

nRFBox_V2/scanner.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33const unsigned long saveInterval = 5000;
34
35byte getRegister(byte r) {
36 byte c;
37 digitalWrite(CSN, LOW);
38 SPI.transfer(r & 0x1F);
39 c = SPI.transfer(0);
40 digitalWrite(CSN, HIGH);
41 return c;
42}
43
44void setRegister(byte r, byte v) {
45 digitalWrite(CSN, LOW);

Callers 4

powerUpFunction · 0.70
powerDownFunction · 0.70
setRXFunction · 0.70
scanChannelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected