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

Function getRegister

nRFBox/scanner.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35byte getRegister(byte r)
36{
37 byte c;
38
39 PORTB &=~_BV(2);
40 c = SPI.transfer(r&0x1F);
41 c = SPI.transfer(0);
42 PORTB |= _BV(2);
43
44 return(c);
45}
46
47void setRegister(byte r, byte v)
48{

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected