ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::sx126x::SX126xRadio Class Reference

#include <sx126x_radio.h>

Public Member Functions

 SX126xRadio ()=default
 
 SX126xRadio (const SX126xRadio &)=delete
 
SX126xRadio & operator= (const SX126xRadio &)=delete
 
SX126xSpiDevice & bus ()
 
void set_dio1_pin (GPIOPin *pin)
 
void set_rst_pin (GPIOPin *pin)
 
GPIOPin * get_dio1_pin () const
 
GPIOPin * get_rst_pin () const
 
RadioState state () const
 
bool busy () const
 
bool is_transmitting () const
 
bool can_configure () const
 
bool can_change_mode () const
 
size_t max_packet_size () const
 
bool is_receiving ()
 
RadioEffects configure (const RadioProfile &requested, std::span< char, 16 > version)
 
RadioEffects retune (uint32_t frequency)
 
RadioEffects change_mode (ModeCommand command, uint8_t arg)
 
RadioEffects start_transmit (SX126xTransmitListener *listener, const uint8_t *data, size_t len, uint32_t timeout_ms)
 
RadioEffects poll_transmit (uint32_t now)
 
RadioEffects cancel_transmit (SX126xTransmitListener *listener)
 
RadioEffects poll (uint32_t now, std::span< uint8_t, SX126X_MAX_PACKET_SIZE > packet)
 

Detailed Description

Definition at line 92 of file sx126x_radio.h.

Constructor & Destructor Documentation

◆ SX126xRadio() [1/2]

esphome::sx126x::SX126xRadio::SX126xRadio ( )
default

◆ SX126xRadio() [2/2]

esphome::sx126x::SX126xRadio::SX126xRadio ( const SX126xRadio & )
delete

Member Function Documentation

◆ bus()

SX126xSpiDevice & esphome::sx126x::SX126xRadio::bus ( )
inline

Definition at line 97 of file sx126x_radio.h.

◆ busy()

bool esphome::sx126x::SX126xRadio::busy ( ) const
inline

Definition at line 103 of file sx126x_radio.h.

◆ can_change_mode()

bool esphome::sx126x::SX126xRadio::can_change_mode ( ) const
inline

Definition at line 107 of file sx126x_radio.h.

◆ can_configure()

bool esphome::sx126x::SX126xRadio::can_configure ( ) const
inline

Definition at line 106 of file sx126x_radio.h.

◆ cancel_transmit()

RadioEffects esphome::sx126x::SX126xRadio::cancel_transmit ( SX126xTransmitListener * listener)

Definition at line 195 of file sx126x_radio.cpp.

◆ change_mode()

RadioEffects esphome::sx126x::SX126xRadio::change_mode ( ModeCommand command,
uint8_t arg )

Definition at line 88 of file sx126x_radio.cpp.

◆ configure()

RadioEffects esphome::sx126x::SX126xRadio::configure ( const RadioProfile & requested,
std::span< char, 16 > version )

Definition at line 20 of file sx126x_radio.cpp.

◆ get_dio1_pin()

GPIOPin * esphome::sx126x::SX126xRadio::get_dio1_pin ( ) const
inline

Definition at line 100 of file sx126x_radio.h.

◆ get_rst_pin()

GPIOPin * esphome::sx126x::SX126xRadio::get_rst_pin ( ) const
inline

Definition at line 101 of file sx126x_radio.h.

◆ is_receiving()

bool esphome::sx126x::SX126xRadio::is_receiving ( )

Definition at line 229 of file sx126x_radio.cpp.

◆ is_transmitting()

bool esphome::sx126x::SX126xRadio::is_transmitting ( ) const
inline

Definition at line 104 of file sx126x_radio.h.

◆ max_packet_size()

size_t esphome::sx126x::SX126xRadio::max_packet_size ( ) const
inline

Definition at line 108 of file sx126x_radio.h.

◆ operator=()

SX126xRadio & esphome::sx126x::SX126xRadio::operator= ( const SX126xRadio & )
delete

◆ poll()

RadioEffects esphome::sx126x::SX126xRadio::poll ( uint32_t now,
std::span< uint8_t, SX126X_MAX_PACKET_SIZE > packet )

Definition at line 249 of file sx126x_radio.cpp.

◆ poll_transmit()

RadioEffects esphome::sx126x::SX126xRadio::poll_transmit ( uint32_t now)

Definition at line 165 of file sx126x_radio.cpp.

◆ retune()

RadioEffects esphome::sx126x::SX126xRadio::retune ( uint32_t frequency)

Definition at line 54 of file sx126x_radio.cpp.

◆ set_dio1_pin()

void esphome::sx126x::SX126xRadio::set_dio1_pin ( GPIOPin * pin)
inline

Definition at line 98 of file sx126x_radio.h.

◆ set_rst_pin()

void esphome::sx126x::SX126xRadio::set_rst_pin ( GPIOPin * pin)
inline

Definition at line 99 of file sx126x_radio.h.

◆ start_transmit()

RadioEffects esphome::sx126x::SX126xRadio::start_transmit ( SX126xTransmitListener * listener,
const uint8_t * data,
size_t len,
uint32_t timeout_ms )

Definition at line 117 of file sx126x_radio.cpp.

◆ state()

RadioState esphome::sx126x::SX126xRadio::state ( ) const
inline

Definition at line 102 of file sx126x_radio.h.


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