MySensors Library & Examples  2.3.2
Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
RFM69 Class Reference

Detailed Description

RFM69 class

Definition at line 121 of file RFM69_old.h.

#include <RFM69_old.h>

+ Collaboration diagram for RFM69:

Public Member Functions

 RFM69 (uint8_t slaveSelectPin=MY_RFM69_CS_PIN, uint8_t interruptPin=MY_RFM69_IRQ_PIN, bool isRFM69HW=false, uint8_t interruptNum=digitalPinToInterrupt(MY_RFM69_IRQ_PIN))
 Constructor. More...
 
bool initialize (uint8_t freqBand, uint8_t ID, uint8_t networkID=1)
 initialize
 
void setAddress (uint8_t addr)
 setAddress
 
void setNetwork (uint8_t networkID)
 setNetwork
 
bool canSend ()
 canSend
 
virtual void send (uint8_t toAddress, const void *buffer, uint8_t bufferSize, bool requestACK=false)
 send
 
virtual bool sendWithRetry (uint8_t toAddress, const void *buffer, uint8_t bufferSize, uint8_t retries=5, uint8_t retryWaitTime=200)
 sendWithRetry (40ms roundtrip req for 61byte packets, adjusted)
 
virtual bool receiveDone ()
 receiveDone
 
bool ACKReceived (uint8_t fromNodeID)
 ACKReceived.
 
bool ACKRequested ()
 ACKRequested.
 
virtual void sendACK (const void *buffer="", uint8_t bufferSize=0)
 sendACK
 
uint32_t getFrequency ()
 getFrequency
 
void setFrequency (uint32_t freqHz)
 setFrequency
 
void encrypt (const char *key)
 encrypt
 
void setCS (uint8_t newSPISlaveSelect)
 setCS
 
int16_t readRSSI (bool forceTrigger=false)
 readRSSI
 
void promiscuous (bool onOff=true)
 promiscuous
 
virtual void setHighPower (bool onOFF=true)
 setHighPower (have to call it after initialize for RFM69HW)
 
virtual void setPowerLevel (uint8_t level)
 setPowerLevel (reduce/increase transmit power level)
 
void sleep (void)
 sleep
 
void standBy (void)
 standBy
 
void powerDown (void)
 powerDown
 
void powerUp (void)
 powerUp
 
void reset (void)
 reset
 
bool sanityCheck (void)
 sanityCheck
 
uint8_t readTemperature (uint8_t calFactor=0)
 readTemperature (get CMOS temperature (8bit))
 
void rcCalibration ()
 rcCalibration (calibrate the internal RC oscillator for use in wide temperature variations - see datasheet section [4.3.5. RC Timer Accuracy])
 
uint8_t readReg (uint8_t addr)
 readReg
 
void writeReg (uint8_t addr, uint8_t val)
 writeReg
 
void readAllRegs ()
 readAllRegs
 

Static Public Attributes

static volatile uint8_t DATA [RFM69_MAX_DATA_LEN]
 recv/xmit buf, including hdr & crc bytes
 
static volatile uint8_t DATALEN
 DATALEN.
 
static volatile uint8_t SENDERID
 SENDERID.
 
static volatile uint8_t TARGETID
 should match _address
 
static volatile uint8_t PAYLOADLEN
 PAYLOADLEN.
 
static volatile uint8_t ACK_REQUESTED
 ACK_REQUESTED.
 
static volatile uint8_t ACK_RECEIVED
 Should be polled immediately after sending a packet with ACK requestwith ACK request.
 
static volatile int16_t RSSI
 most accurate RSSI during reception (closest to the reception)
 
static volatile uint8_t _mode
 should be protected?
 

Protected Member Functions

virtual void interruptHandler ()
 interruptHandler
 
virtual void interruptHook (uint8_t CTLbyte)
 interruptHook
 
virtual void sendFrame (uint8_t toAddress, const void *buffer, uint8_t size, bool requestACK=false, bool sendACK=false)
 sendFrame
 
virtual void receiveBegin ()
 receiveBegin
 
virtual void setMode (uint8_t mode)
 setMode
 
virtual void setHighPowerRegs (bool onOff)
 setHighPowerRegs
 
virtual void select ()
 select
 
virtual void unselect ()
 unselect
 

Static Protected Member Functions

static void isr0 ()
 isr0
 

Protected Attributes

uint8_t _slaveSelectPin
 _slaveSelectPin
 
uint8_t _interruptPin
 _interruptPin
 
uint8_t _interruptNum
 _interruptNum
 
uint8_t _address
 _address
 
bool _promiscuousMode
 _promiscuousMode
 
uint8_t _powerLevel
 _powerLevel
 
bool _isRFM69HW
 _isRFM69HW
 

Static Protected Attributes

static RFM69selfPointer
 selfPointer
 

Constructor & Destructor Documentation

◆ RFM69()

RFM69::RFM69 ( uint8_t  slaveSelectPin = MY_RFM69_CS_PIN,
uint8_t  interruptPin = MY_RFM69_IRQ_PIN,
bool  isRFM69HW = false,
uint8_t  interruptNum = digitalPinToInterrupt(MY_RFM69_IRQ_PIN) 
)
inline

Constructor.

Parameters
slaveSelectPinChipSelect pin.
interruptPinInterrupt pin.
isRFM69HWSet to true to indicate RFM69HW variant.
interruptNumInterrupt number.

Definition at line 144 of file RFM69_old.h.


The documentation for this class was generated from the following file: