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

#include <sx126x_commands.h>

Public Member Functions

 SX126xCommands ()=default
 
 SX126xCommands (const SX126xCommands &)=delete
 
SX126xCommands & operator= (const SX126xCommands &)=delete
 
SX126xSpiDevice & bus ()
 
ConfigurationResult configure (const RadioProfile &profile, std::span< char, 16 > version, AppliedProfile &applied)
 
void set_packet_length (AppliedProfile &applied, uint8_t length)
 
void calibrate_image (uint32_t frequency)
 
void set_frequency (uint32_t frequency)
 
void standby (SX126xStandbyMode mode)
 
void receive ()
 
void transmit (uint32_t timeout_ms=0)
 
void sleep (bool cold=false)
 
void clear_irqs (uint16_t mask=0xFFFF)
 
uint16_t read_irq ()
 
void write_fifo (const uint8_t *data, size_t size)
 
void read_packet (uint8_t modulation, std::span< uint8_t, SX126X_MAX_PACKET_SIZE > packet, uint8_t &length, float &rssi, float &snr)
 

Static Public Member Functions

static uint32_t bandwidth_hz (SX126xBw bw)
 
static uint16_t ramp_us (uint8_t ramp)
 

Detailed Description

Definition at line 17 of file sx126x_commands.h.

Constructor & Destructor Documentation

◆ SX126xCommands() [1/2]

esphome::sx126x::SX126xCommands::SX126xCommands ( )
default

◆ SX126xCommands() [2/2]

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

Member Function Documentation

◆ bandwidth_hz()

uint32_t esphome::sx126x::SX126xCommands::bandwidth_hz ( SX126xBw bw)
static

Definition at line 302 of file sx126x_commands.cpp.

◆ bus()

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

Definition at line 22 of file sx126x_commands.h.

◆ calibrate_image()

void esphome::sx126x::SX126xCommands::calibrate_image ( uint32_t frequency)

Definition at line 221 of file sx126x_commands.cpp.

◆ clear_irqs()

void esphome::sx126x::SX126xCommands::clear_irqs ( uint16_t mask = 0xFFFF)

Definition at line 305 of file sx126x_commands.cpp.

◆ configure()

ConfigurationResult esphome::sx126x::SX126xCommands::configure ( const RadioProfile & profile,
std::span< char, 16 > version,
AppliedProfile & applied )
nodiscard

Definition at line 49 of file sx126x_commands.cpp.

◆ operator=()

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

◆ ramp_us()

uint16_t esphome::sx126x::SX126xCommands::ramp_us ( uint8_t ramp)
static

Definition at line 303 of file sx126x_commands.cpp.

◆ read_irq()

uint16_t esphome::sx126x::SX126xCommands::read_irq ( )

Definition at line 310 of file sx126x_commands.cpp.

◆ read_packet()

void esphome::sx126x::SX126xCommands::read_packet ( uint8_t modulation,
std::span< uint8_t, SX126X_MAX_PACKET_SIZE > packet,
uint8_t & length,
float & rssi,
float & snr )

Definition at line 321 of file sx126x_commands.cpp.

◆ receive()

void esphome::sx126x::SX126xCommands::receive ( )

Definition at line 256 of file sx126x_commands.cpp.

◆ set_frequency()

void esphome::sx126x::SX126xCommands::set_frequency ( uint32_t frequency)

Definition at line 290 of file sx126x_commands.cpp.

◆ set_packet_length()

void esphome::sx126x::SX126xCommands::set_packet_length ( AppliedProfile & applied,
uint8_t length )

Definition at line 216 of file sx126x_commands.cpp.

◆ sleep()

void esphome::sx126x::SX126xCommands::sleep ( bool cold = false)

Definition at line 284 of file sx126x_commands.cpp.

◆ standby()

void esphome::sx126x::SX126xCommands::standby ( SX126xStandbyMode mode)

Definition at line 297 of file sx126x_commands.cpp.

◆ transmit()

void esphome::sx126x::SX126xCommands::transmit ( uint32_t timeout_ms = 0)

Definition at line 274 of file sx126x_commands.cpp.

◆ write_fifo()

void esphome::sx126x::SX126xCommands::write_fifo ( const uint8_t * data,
size_t size )

Definition at line 316 of file sx126x_commands.cpp.


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