MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / RFM69

Method RFM69

RFM69.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40RFM69 *RFM69::_instance = nullptr;
41
42RFM69::RFM69(uint8_t slaveSelectPin, uint8_t interruptPin, bool isRFM69HW_HCW, SPIClass *spi) {
43 _instance = this;
44 _slaveSelectPin = slaveSelectPin;
45 _interruptPin = interruptPin;
46 _mode = RF69_MODE_STANDBY;
47 _spyMode = false;
48 _powerLevel = 31;
49 _isRFM69HW = isRFM69HW_HCW;
50 _spi = spi;
51#if defined(RF69_LISTENMODE_ENABLE)
52 _isHighSpeed = true;
53 _haveEncryptKey = false;
54 uint32_t rxDuration = DEFAULT_LISTEN_RX_US;
55 uint32_t idleDuration = DEFAULT_LISTEN_IDLE_US;
56 listenModeSetDurations(rxDuration, idleDuration);
57#endif
58}
59
60bool RFM69::initialize(uint8_t freqBand, uint16_t nodeID, uint8_t networkID) {
61 _interruptNum = digitalPinToInterrupt(_interruptPin);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected