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

Function radioConfig

nRFBox/jammer.cpp:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24void radioConfig() {
25 digitalWrite(9, HIGH);
26 delayMicroseconds(150);
27
28 SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));
29 digitalWrite(10, LOW);
30
31 SPI.transfer(0x20 | (0x06 & 0x07));
32 SPI.transfer(0x07);
33
34 SPI.transfer(0x20 | (0x05 & 0x07));
35 SPI.transfer(0x08);
36
37 digitalWrite(10, HIGH);
38 SPI.endTransaction();
39}
40
41
42void radioWrite(const void* buf, uint8_t len) {

Callers 1

jammerLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected