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

Function writeRegister

VScode Platformio/src/analyzer.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85void writeRegister(uint8_t reg, uint8_t value) {
86 digitalWrite(CSN, LOW);
87 SPI.transfer(reg | 0x20);
88 SPI.transfer(value);
89 digitalWrite(CSN, HIGH);
90}
91
92uint8_t readRegister(uint8_t reg) {
93 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