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

Function getRegister

VScode Platformio/src/scanner.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33byte sensorArray[129];
34
35byte getRegister(byte r) {
36 byte c;
37
38 digitalWrite(CSN, LOW);
39 SPI.transfer(r & 0x1F);
40 c = SPI.transfer(0);
41 digitalWrite(CSN, HIGH);
42
43 return c;
44}
45
46void setRegister(byte r, byte v) {
47 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