ESPHome 2025.7.1
Loading...
Searching...
No Matches
sx126x_reg.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::sx126x
 

Enumerations

enum  esphome::sx126x::SX126xOpCode : uint8_t {
  esphome::sx126x::RADIO_GET_STATUS = 0xC0 , esphome::sx126x::RADIO_WRITE_REGISTER = 0x0D , esphome::sx126x::RADIO_READ_REGISTER = 0x1D , esphome::sx126x::RADIO_WRITE_BUFFER = 0x0E ,
  esphome::sx126x::RADIO_READ_BUFFER = 0x1E , esphome::sx126x::RADIO_SET_SLEEP = 0x84 , esphome::sx126x::RADIO_SET_STANDBY = 0x80 , esphome::sx126x::RADIO_SET_FS = 0xC1 ,
  esphome::sx126x::RADIO_SET_TX = 0x83 , esphome::sx126x::RADIO_SET_RX = 0x82 , esphome::sx126x::RADIO_SET_RXDUTYCYCLE = 0x94 , esphome::sx126x::RADIO_SET_CAD = 0xC5 ,
  esphome::sx126x::RADIO_SET_TXCONTINUOUSWAVE = 0xD1 , esphome::sx126x::RADIO_SET_TXCONTINUOUSPREAMBLE = 0xD2 , esphome::sx126x::RADIO_SET_PACKETTYPE = 0x8A , esphome::sx126x::RADIO_GET_PACKETTYPE = 0x11 ,
  esphome::sx126x::RADIO_SET_RFFREQUENCY = 0x86 , esphome::sx126x::RADIO_SET_TXPARAMS = 0x8E , esphome::sx126x::RADIO_SET_PACONFIG = 0x95 , esphome::sx126x::RADIO_SET_CADPARAMS = 0x88 ,
  esphome::sx126x::RADIO_SET_BUFFERBASEADDRESS = 0x8F , esphome::sx126x::RADIO_SET_MODULATIONPARAMS = 0x8B , esphome::sx126x::RADIO_SET_PACKETPARAMS = 0x8C , esphome::sx126x::RADIO_GET_RXBUFFERSTATUS = 0x13 ,
  esphome::sx126x::RADIO_GET_PACKETSTATUS = 0x14 , esphome::sx126x::RADIO_GET_RSSIINST = 0x15 , esphome::sx126x::RADIO_GET_STATS = 0x10 , esphome::sx126x::RADIO_RESET_STATS = 0x00 ,
  esphome::sx126x::RADIO_SET_DIOIRQPARAMS = 0x08 , esphome::sx126x::RADIO_GET_IRQSTATUS = 0x12 , esphome::sx126x::RADIO_CLR_IRQSTATUS = 0x02 , esphome::sx126x::RADIO_CALIBRATE = 0x89 ,
  esphome::sx126x::RADIO_CALIBRATEIMAGE = 0x98 , esphome::sx126x::RADIO_SET_REGULATORMODE = 0x96 , esphome::sx126x::RADIO_GET_ERROR = 0x17 , esphome::sx126x::RADIO_CLR_ERROR = 0x07 ,
  esphome::sx126x::RADIO_SET_TCXOMODE = 0x97 , esphome::sx126x::RADIO_SET_TXFALLBACKMODE = 0x93 , esphome::sx126x::RADIO_SET_RFSWITCHMODE = 0x9D , esphome::sx126x::RADIO_SET_STOPRXTIMERONPREAMBLE = 0x9F ,
  esphome::sx126x::RADIO_SET_LORASYMBTIMEOUT = 0xA0
}
 
enum  esphome::sx126x::SX126xRegister : uint16_t { esphome::sx126x::REG_VERSION_STRING = 0x0320 , esphome::sx126x::REG_GFSK_SYNCWORD = 0x06C0 , esphome::sx126x::REG_LORA_SYNCWORD = 0x0740 , esphome::sx126x::REG_OCP = 0x08E7 }
 
enum  esphome::sx126x::SX126xStandbyMode : uint8_t { esphome::sx126x::STDBY_RC = 0x00 , esphome::sx126x::STDBY_XOSC = 0x01 }
 
enum  esphome::sx126x::SX126xPacketType : uint8_t { esphome::sx126x::PACKET_TYPE_GFSK = 0x00 , esphome::sx126x::PACKET_TYPE_LORA = 0x01 , esphome::sx126x::PACKET_TYPE_LRHSS = 0x03 }
 
enum  esphome::sx126x::SX126xFskBw : uint8_t {
  esphome::sx126x::FSK_BW_4800 = 0x1F , esphome::sx126x::FSK_BW_5800 = 0x17 , esphome::sx126x::FSK_BW_7300 = 0x0F , esphome::sx126x::FSK_BW_9700 = 0x1E ,
  esphome::sx126x::FSK_BW_11700 = 0x16 , esphome::sx126x::FSK_BW_14600 = 0x0E , esphome::sx126x::FSK_BW_19500 = 0x1D , esphome::sx126x::FSK_BW_23400 = 0x15 ,
  esphome::sx126x::FSK_BW_29300 = 0x0D , esphome::sx126x::FSK_BW_39000 = 0x1C , esphome::sx126x::FSK_BW_46900 = 0x14 , esphome::sx126x::FSK_BW_58600 = 0x0C ,
  esphome::sx126x::FSK_BW_78200 = 0x1B , esphome::sx126x::FSK_BW_93800 = 0x13 , esphome::sx126x::FSK_BW_117300 = 0x0B , esphome::sx126x::FSK_BW_156200 = 0x1A ,
  esphome::sx126x::FSK_BW_187200 = 0x12 , esphome::sx126x::FSK_BW_234300 = 0x0A , esphome::sx126x::FSK_BW_312000 = 0x19 , esphome::sx126x::FSK_BW_373600 = 0x11 ,
  esphome::sx126x::FSK_BW_467000 = 0x09
}
 
enum  esphome::sx126x::SX126xLoraBw : uint8_t {
  esphome::sx126x::LORA_BW_7810 = 0x00 , esphome::sx126x::LORA_BW_10420 = 0x08 , esphome::sx126x::LORA_BW_15630 = 0x01 , esphome::sx126x::LORA_BW_20830 = 0x09 ,
  esphome::sx126x::LORA_BW_31250 = 0x02 , esphome::sx126x::LORA_BW_41670 = 0x0A , esphome::sx126x::LORA_BW_62500 = 0x03 , esphome::sx126x::LORA_BW_125000 = 0x04 ,
  esphome::sx126x::LORA_BW_250000 = 0x05 , esphome::sx126x::LORA_BW_500000 = 0x06
}
 
enum  esphome::sx126x::SX126xLoraCr : uint8_t { esphome::sx126x::LORA_CR_4_5 = 0x01 , esphome::sx126x::LORA_CR_4_6 = 0x02 , esphome::sx126x::LORA_CR_4_7 = 0x03 , esphome::sx126x::LORA_CR_4_8 = 0x04 }
 
enum  esphome::sx126x::SX126xIrqMasks : uint16_t {
  esphome::sx126x::IRQ_RADIO_NONE = 0x0000 , esphome::sx126x::IRQ_TX_DONE = 0x0001 , esphome::sx126x::IRQ_RX_DONE = 0x0002 , esphome::sx126x::IRQ_PREAMBLE_DETECTED = 0x0004 ,
  esphome::sx126x::IRQ_SYNCWORD_VALID = 0x0008 , esphome::sx126x::IRQ_HEADER_VALID = 0x0010 , esphome::sx126x::IRQ_HEADER_ERROR = 0x0020 , esphome::sx126x::IRQ_CRC_ERROR = 0x0040 ,
  esphome::sx126x::IRQ_CAD_DONE = 0x0080 , esphome::sx126x::IRQ_CAD_ACTIVITY_DETECTED = 0x0100 , esphome::sx126x::IRQ_RX_TX_TIMEOUT = 0x0200 , esphome::sx126x::IRQ_RADIO_ALL = 0xFFFF
}
 
enum  esphome::sx126x::SX126xTcxoCtrl : uint8_t {
  esphome::sx126x::TCXO_CTRL_1_6V = 0x00 , esphome::sx126x::TCXO_CTRL_1_7V = 0x01 , esphome::sx126x::TCXO_CTRL_1_8V = 0x02 , esphome::sx126x::TCXO_CTRL_2_2V = 0x03 ,
  esphome::sx126x::TCXO_CTRL_2_4V = 0x04 , esphome::sx126x::TCXO_CTRL_2_7V = 0x05 , esphome::sx126x::TCXO_CTRL_3_0V = 0x06 , esphome::sx126x::TCXO_CTRL_3_3V = 0x07 ,
  esphome::sx126x::TCXO_CTRL_NONE = 0xFF
}
 
enum  esphome::sx126x::SX126xPulseShape : uint8_t {
  esphome::sx126x::NO_FILTER = 0x00 , esphome::sx126x::GAUSSIAN_BT_0_3 = 0x08 , esphome::sx126x::GAUSSIAN_BT_0_5 = 0x09 , esphome::sx126x::GAUSSIAN_BT_0_7 = 0x0A ,
  esphome::sx126x::GAUSSIAN_BT_1_0 = 0x0B
}
 
enum  esphome::sx126x::SX126xRampTime : uint8_t {
  esphome::sx126x::PA_RAMP_10 = 0x00 , esphome::sx126x::PA_RAMP_20 = 0x01 , esphome::sx126x::PA_RAMP_40 = 0x02 , esphome::sx126x::PA_RAMP_80 = 0x03 ,
  esphome::sx126x::PA_RAMP_200 = 0x04 , esphome::sx126x::PA_RAMP_800 = 0x05 , esphome::sx126x::PA_RAMP_1700 = 0x06 , esphome::sx126x::PA_RAMP_3400 = 0x07
}