Custom SPI support
This commit is contained in:
parent
78447f61ef
commit
06d2786f77
|
|
@ -36,8 +36,8 @@ class RFM69_ATC: public RFM69 {
|
||||||
public:
|
public:
|
||||||
static volatile uint8_t ACK_RSSI_REQUESTED; // new flag in CTL byte to request RSSI with ACK (could potentially be merged with ACK_REQUESTED)
|
static volatile uint8_t ACK_RSSI_REQUESTED; // new flag in CTL byte to request RSSI with ACK (could potentially be merged with ACK_REQUESTED)
|
||||||
|
|
||||||
RFM69_ATC(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false, uint8_t interruptNum=0) :
|
RFM69_ATC(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false, uint8_t interruptNum=0, SPIClass *spi=nullptr) :
|
||||||
RFM69(slaveSelectPin, interruptPin, isRFM69HW) {
|
RFM69(slaveSelectPin, interruptPin, isRFM69HW, spi) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool initialize(uint8_t freqBand, uint16_t ID, uint8_t networkID=1);
|
bool initialize(uint8_t freqBand, uint16_t ID, uint8_t networkID=1);
|
||||||
|
|
@ -66,4 +66,4 @@ class RFM69_ATC: public RFM69 {
|
||||||
uint8_t _PA_Reg; // saved and derived PA control bits so we don't have to spend time reading back from SPI port
|
uint8_t _PA_Reg; // saved and derived PA control bits so we don't have to spend time reading back from SPI port
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue