| 40 | RFM69 *RFM69::_instance = nullptr; |
| 41 | |
| 42 | RFM69::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 | |
| 60 | bool RFM69::initialize(uint8_t freqBand, uint16_t nodeID, uint8_t networkID) { |
| 61 | _interruptNum = digitalPinToInterrupt(_interruptPin); |
nothing calls this directly
no outgoing calls
no test coverage detected