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

Function writeRegister

nRFBox_V2/analyzer.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89void writeRegister(uint8_t reg, uint8_t value) {
90 digitalWrite(CSN, LOW);
91 SPI.transfer(reg | 0x20);
92 SPI.transfer(value);
93 digitalWrite(CSN, HIGH);
94}
95
96uint8_t readRegister(uint8_t reg) {
97 digitalWrite(CSN, LOW);

Callers 4

setChannelFunction · 0.70
powerUPFunction · 0.70
powerDOWNFunction · 0.70
analyzerSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected