3-phase PV router
Loading...
Searching...
No Matches
utils_rf.h File Reference

RF module support for RFM69. More...

#include "config_derived.h"
#include "config_rf.h"
#include <RFM69.h>
#include <SPI.h>
Include dependency graph for utils_rf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SharedRF
 

Functions

bool initialize_rf ()
 Initialize the shared RF module.
 
RFM69 & SharedRF::radio ()
 Accessor for the shared RFM69 instance.
 
template<typename PayloadType>
void send_rf_data (const PayloadType &data)
 Send RF data to gateway.
 

Variables

bool SharedRF::initialized { false }
 
constexpr bool RF_CHIP_PRESENT { REMOTE_LOADS_PRESENT || RF_LOGGING_PRESENT }
 

Detailed Description

RF module support for RFM69.

Author
Frédéric Metrich (frede.nosp@m.ric..nosp@m.metri.nosp@m.ch@l.nosp@m.ive.f.nosp@m.r)
Version
2.0
Date
2026-11-21

Provides shared RFM69 radio instance and data logging functionality. Can be used standalone for data logging or together with remote loads. RF configuration is centralized in config_rf.h

Definition in file utils_rf.h.

Function Documentation

◆ initialize_rf()

bool initialize_rf ( )
inline

Initialize the shared RF module.

Returns
true if initialization successful, false otherwise

Definition at line 57 of file utils_rf.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_rf_data()

template<typename PayloadType>
void send_rf_data ( const PayloadType & data)
inline

Send RF data to gateway.

Parameters
dataReference to the telemetry data to send

Sends telemetry data to the gateway node for data logging. Nothing is sent while the RF module is not initialized: sendResults() retries the initialization once per datalog period, for the remote loads as well. Uses fire-and-forget mode (no ACK) for better performance.

Definition at line 96 of file utils_rf.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ RF_CHIP_PRESENT

bool RF_CHIP_PRESENT { REMOTE_LOADS_PRESENT || RF_LOGGING_PRESENT }
inlineconstexpr

Definition at line 25 of file utils_rf.h.