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

#include <sx126x_spi_device.h>

Public Member Functions

 SX126xSpiDevice ()=default
 
 SX126xSpiDevice (const SX126xSpiDevice &)=delete
 
SX126xSpiDevice & operator= (const SX126xSpiDevice &)=delete
 
void set_spi_parent (spi::SPIComponent *parent)
 
void set_cs_pin (GPIOPin *pin)
 
void set_data_rate (uint32_t rate)
 
void set_mode (spi::SPIMode mode)
 
void set_bit_order (spi::SPIBitOrder order)
 
void set_release_device (bool release)
 
void set_write_only (bool write_only)
 
void set_psram_dma (bool enable)
 
void set_busy_pin (GPIOPin *pin)
 
GPIOPin * get_busy_pin () const
 
GPIOPin * get_cs_pin () const
 
void setup ()
 
void teardown ()
 
void begin ()
 
bool ok () const
 
void write (std::span< const uint8_t > header, std::span< const uint8_t > data)
 
void read (std::span< const uint8_t > header, std::span< uint8_t > data)
 

Detailed Description

Definition at line 12 of file sx126x_spi_device.h.

Constructor & Destructor Documentation

◆ SX126xSpiDevice() [1/2]

esphome::sx126x::SX126xSpiDevice::SX126xSpiDevice ( )
default

◆ SX126xSpiDevice() [2/2]

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

Member Function Documentation

◆ begin()

void esphome::sx126x::SX126xSpiDevice::begin ( )
inline

Definition at line 34 of file sx126x_spi_device.h.

◆ get_busy_pin()

GPIOPin * esphome::sx126x::SX126xSpiDevice::get_busy_pin ( ) const
inline

Definition at line 29 of file sx126x_spi_device.h.

◆ get_cs_pin()

GPIOPin * esphome::sx126x::SX126xSpiDevice::get_cs_pin ( ) const
inline

Definition at line 30 of file sx126x_spi_device.h.

◆ ok()

bool esphome::sx126x::SX126xSpiDevice::ok ( ) const
inline

Definition at line 36 of file sx126x_spi_device.h.

◆ operator=()

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

◆ read()

void esphome::sx126x::SX126xSpiDevice::read ( std::span< const uint8_t > header,
std::span< uint8_t > data )

Definition at line 41 of file sx126x_spi_device.cpp.

◆ set_bit_order()

void esphome::sx126x::SX126xSpiDevice::set_bit_order ( spi::SPIBitOrder order)
inline

Definition at line 21 of file sx126x_spi_device.h.

◆ set_busy_pin()

void esphome::sx126x::SX126xSpiDevice::set_busy_pin ( GPIOPin * pin)
inline

Definition at line 28 of file sx126x_spi_device.h.

◆ set_cs_pin()

void esphome::sx126x::SX126xSpiDevice::set_cs_pin ( GPIOPin * pin)
inline

Definition at line 18 of file sx126x_spi_device.h.

◆ set_data_rate()

void esphome::sx126x::SX126xSpiDevice::set_data_rate ( uint32_t rate)
inline

Definition at line 19 of file sx126x_spi_device.h.

◆ set_mode()

void esphome::sx126x::SX126xSpiDevice::set_mode ( spi::SPIMode mode)
inline

Definition at line 20 of file sx126x_spi_device.h.

◆ set_psram_dma()

void esphome::sx126x::SX126xSpiDevice::set_psram_dma ( bool enable)
inline

Definition at line 25 of file sx126x_spi_device.h.

◆ set_release_device()

void esphome::sx126x::SX126xSpiDevice::set_release_device ( bool release)
inline

Definition at line 22 of file sx126x_spi_device.h.

◆ set_spi_parent()

void esphome::sx126x::SX126xSpiDevice::set_spi_parent ( spi::SPIComponent * parent)
inline

Definition at line 17 of file sx126x_spi_device.h.

◆ set_write_only()

void esphome::sx126x::SX126xSpiDevice::set_write_only ( bool write_only)
inline

Definition at line 23 of file sx126x_spi_device.h.

◆ setup()

void esphome::sx126x::SX126xSpiDevice::setup ( )
inline

Definition at line 31 of file sx126x_spi_device.h.

◆ teardown()

void esphome::sx126x::SX126xSpiDevice::teardown ( )
inline

Definition at line 32 of file sx126x_spi_device.h.

◆ write()

void esphome::sx126x::SX126xSpiDevice::write ( std::span< const uint8_t > header,
std::span< const uint8_t > data )

Definition at line 33 of file sx126x_spi_device.cpp.


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