[RF69] Reworked macro configuration system
This commit is contained in:
parent
63287ab6fd
commit
2e1ce8ce89
2 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "RF69.h"
|
||||
#include <math.h>
|
||||
#if !defined(RADIOLIB_EXCLUDE_RF69)
|
||||
#if !RADIOLIB_EXCLUDE_RF69
|
||||
|
||||
RF69::RF69(Module* module) : PhysicalLayer(RADIOLIB_RF69_FREQUENCY_STEP_SIZE, RADIOLIB_RF69_MAX_PACKET_LENGTH) {
|
||||
this->mod = module;
|
||||
|
@ -960,7 +960,7 @@ uint8_t RF69::randomByte() {
|
|||
return(randByte);
|
||||
}
|
||||
|
||||
#if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
|
||||
#if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
|
||||
void RF69::setDirectAction(void (*func)(void)) {
|
||||
setDio1Action(func);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "../../TypeDef.h"
|
||||
|
||||
#if !defined(RADIOLIB_EXCLUDE_RF69)
|
||||
#if !RADIOLIB_EXCLUDE_RF69
|
||||
|
||||
#include "../../Module.h"
|
||||
|
||||
|
@ -973,7 +973,7 @@ class RF69: public PhysicalLayer {
|
|||
*/
|
||||
int16_t getChipVersion();
|
||||
|
||||
#if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
|
||||
#if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
|
||||
/*!
|
||||
\brief Set interrupt service routine function to call when data bit is received in direct mode.
|
||||
\param func Pointer to interrupt service routine.
|
||||
|
@ -995,12 +995,12 @@ class RF69: public PhysicalLayer {
|
|||
*/
|
||||
int16_t setDIOMapping(uint32_t pin, uint32_t value);
|
||||
|
||||
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
||||
#if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
|
||||
protected:
|
||||
#endif
|
||||
Module* mod;
|
||||
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
#if !RADIOLIB_GODMODE
|
||||
protected:
|
||||
#endif
|
||||
|
||||
|
@ -1025,7 +1025,7 @@ class RF69: public PhysicalLayer {
|
|||
int16_t directMode();
|
||||
int16_t setPacketMode(uint8_t mode, uint8_t len);
|
||||
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
#if !RADIOLIB_GODMODE
|
||||
private:
|
||||
#endif
|
||||
int16_t setMode(uint8_t mode);
|
||||
|
|
Loading…
Add table
Reference in a new issue