ESPHome 2025.7.1
Loading...
Searching...
No Matches
sx127x_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::sx127x
 

Enumerations

enum  esphome::sx127x::SX127xReg : uint8_t {
  esphome::sx127x::REG_FIFO = 0x00 , esphome::sx127x::REG_OP_MODE = 0x01 , esphome::sx127x::REG_BITRATE_MSB = 0x02 , esphome::sx127x::REG_BITRATE_LSB = 0x03 ,
  esphome::sx127x::REG_FDEV_MSB = 0x04 , esphome::sx127x::REG_FDEV_LSB = 0x05 , esphome::sx127x::REG_FRF_MSB = 0x06 , esphome::sx127x::REG_FRF_MID = 0x07 ,
  esphome::sx127x::REG_FRF_LSB = 0x08 , esphome::sx127x::REG_PA_CONFIG = 0x09 , esphome::sx127x::REG_PA_RAMP = 0x0A , esphome::sx127x::REG_DIO_MAPPING1 = 0x40 ,
  esphome::sx127x::REG_DIO_MAPPING2 = 0x41 , esphome::sx127x::REG_VERSION = 0x42 , esphome::sx127x::REG_RX_CONFIG = 0x0D , esphome::sx127x::REG_RSSI_THRESH = 0x10 ,
  esphome::sx127x::REG_RX_BW = 0x12 , esphome::sx127x::REG_OOK_PEAK = 0x14 , esphome::sx127x::REG_OOK_FIX = 0x15 , esphome::sx127x::REG_OOK_AVG = 0x16 ,
  esphome::sx127x::REG_AFC_FEI = 0x1A , esphome::sx127x::REG_PREAMBLE_DETECT = 0x1F , esphome::sx127x::REG_PREAMBLE_SIZE_MSB = 0x25 , esphome::sx127x::REG_PREAMBLE_SIZE_LSB = 0x26 ,
  esphome::sx127x::REG_SYNC_CONFIG = 0x27 , esphome::sx127x::REG_SYNC_VALUE1 = 0x28 , esphome::sx127x::REG_SYNC_VALUE2 = 0x29 , esphome::sx127x::REG_SYNC_VALUE3 = 0x2A ,
  esphome::sx127x::REG_SYNC_VALUE4 = 0x2B , esphome::sx127x::REG_SYNC_VALUE5 = 0x2C , esphome::sx127x::REG_SYNC_VALUE6 = 0x2D , esphome::sx127x::REG_SYNC_VALUE7 = 0x2E ,
  esphome::sx127x::REG_SYNC_VALUE8 = 0x2F , esphome::sx127x::REG_PACKET_CONFIG_1 = 0x30 , esphome::sx127x::REG_PACKET_CONFIG_2 = 0x31 , esphome::sx127x::REG_PAYLOAD_LENGTH_LSB = 0x32 ,
  esphome::sx127x::REG_FIFO_THRESH = 0x35 , esphome::sx127x::REG_IMAGE_CAL = 0x3B , esphome::sx127x::REG_FIFO_ADDR_PTR = 0x0D , esphome::sx127x::REG_FIFO_TX_BASE_ADDR = 0x0E ,
  esphome::sx127x::REG_FIFO_RX_BASE_ADDR = 0x0F , esphome::sx127x::REG_FIFO_RX_CURR_ADDR = 0x10 , esphome::sx127x::REG_IRQ_FLAGS_MASK = 0x11 , esphome::sx127x::REG_IRQ_FLAGS = 0x12 ,
  esphome::sx127x::REG_NB_RX_BYTES = 0x13 , esphome::sx127x::REG_MODEM_STAT = 0x18 , esphome::sx127x::REG_PKT_SNR_VALUE = 0x19 , esphome::sx127x::REG_PKT_RSSI_VALUE = 0x1A ,
  esphome::sx127x::REG_RSSI_VALUE = 0x1B , esphome::sx127x::REG_HOP_CHANNEL = 0x1C , esphome::sx127x::REG_MODEM_CONFIG1 = 0x1D , esphome::sx127x::REG_MODEM_CONFIG2 = 0x1E ,
  esphome::sx127x::REG_SYMB_TIMEOUT_LSB = 0x1F , esphome::sx127x::REG_PREAMBLE_LEN_MSB = 0x20 , esphome::sx127x::REG_PREAMBLE_LEN_LSB = 0x21 , esphome::sx127x::REG_PAYLOAD_LENGTH = 0x22 ,
  esphome::sx127x::REG_HOP_PERIOD = 0x24 , esphome::sx127x::REG_FIFO_RX_BYTE_ADDR = 0x25 , esphome::sx127x::REG_MODEM_CONFIG3 = 0x26 , esphome::sx127x::REG_FEI_MSB = 0x28 ,
  esphome::sx127x::REG_FEI_MIB = 0x29 , esphome::sx127x::REG_FEI_LSB = 0x2A , esphome::sx127x::REG_DETECT_OPTIMIZE = 0x31 , esphome::sx127x::REG_INVERT_IQ = 0x33 ,
  esphome::sx127x::REG_DETECT_THRESHOLD = 0x37 , esphome::sx127x::REG_SYNC_WORD = 0x39
}
 
enum  esphome::sx127x::SX127xOpMode : uint8_t {
  esphome::sx127x::MOD_LORA = 0x80 , esphome::sx127x::ACCESS_FSK_REGS = 0x40 , esphome::sx127x::ACCESS_LORA_REGS = 0x00 , esphome::sx127x::MOD_OOK = 0x20 ,
  esphome::sx127x::MOD_FSK = 0x00 , esphome::sx127x::ACCESS_LF_REGS = 0x08 , esphome::sx127x::ACCESS_HF_REGS = 0x00 , esphome::sx127x::MODE_CAD = 0x07 ,
  esphome::sx127x::MODE_RX_SINGLE = 0x06 , esphome::sx127x::MODE_RX = 0x05 , esphome::sx127x::MODE_RX_FS = 0x04 , esphome::sx127x::MODE_TX = 0x03 ,
  esphome::sx127x::MODE_TX_FS = 0x02 , esphome::sx127x::MODE_STDBY = 0x01 , esphome::sx127x::MODE_SLEEP = 0x00 , esphome::sx127x::MODE_MASK = 0x07
}
 
enum  esphome::sx127x::SX127xPaConfig : uint8_t { esphome::sx127x::PA_PIN_BOOST = 0x80 , esphome::sx127x::PA_PIN_RFO = 0x00 , esphome::sx127x::PA_MAX_POWER = 0x70 }
 
enum  esphome::sx127x::SX127xPaRamp : uint8_t {
  esphome::sx127x::CUTOFF_BR_X_2 = 0x40 , esphome::sx127x::CUTOFF_BR_X_1 = 0x20 , esphome::sx127x::GAUSSIAN_BT_0_3 = 0x60 , esphome::sx127x::GAUSSIAN_BT_0_5 = 0x40 ,
  esphome::sx127x::GAUSSIAN_BT_1_0 = 0x20 , esphome::sx127x::SHAPING_NONE = 0x00 , esphome::sx127x::PA_RAMP_10 = 0x0F , esphome::sx127x::PA_RAMP_12 = 0x0E ,
  esphome::sx127x::PA_RAMP_15 = 0x0D , esphome::sx127x::PA_RAMP_20 = 0x0C , esphome::sx127x::PA_RAMP_25 = 0x0B , esphome::sx127x::PA_RAMP_31 = 0x0A ,
  esphome::sx127x::PA_RAMP_40 = 0x09 , esphome::sx127x::PA_RAMP_50 = 0x08 , esphome::sx127x::PA_RAMP_62 = 0x07 , esphome::sx127x::PA_RAMP_100 = 0x06 ,
  esphome::sx127x::PA_RAMP_125 = 0x05 , esphome::sx127x::PA_RAMP_250 = 0x04 , esphome::sx127x::PA_RAMP_500 = 0x03 , esphome::sx127x::PA_RAMP_1000 = 0x02 ,
  esphome::sx127x::PA_RAMP_2000 = 0x01 , esphome::sx127x::PA_RAMP_3400 = 0x00
}
 
enum  esphome::sx127x::SX127xDioMapping1 : uint8_t { esphome::sx127x::DIO0_MAPPING_00 = 0x00 , esphome::sx127x::DIO0_MAPPING_01 = 0x40 , esphome::sx127x::DIO0_MAPPING_10 = 0x80 , esphome::sx127x::DIO0_MAPPING_11 = 0xC0 }
 
enum  esphome::sx127x::SX127xRxConfig : uint8_t {
  esphome::sx127x::RESTART_ON_COLLISION = 0x80 , esphome::sx127x::RESTART_NO_LOCK = 0x40 , esphome::sx127x::RESTART_PLL_LOCK = 0x20 , esphome::sx127x::AFC_AUTO_ON = 0x10 ,
  esphome::sx127x::AGC_AUTO_ON = 0x08 , esphome::sx127x::TRIGGER_NONE = 0x00 , esphome::sx127x::TRIGGER_RSSI = 0x01 , esphome::sx127x::TRIGGER_PREAMBLE = 0x06 ,
  esphome::sx127x::TRIGGER_ALL = 0x07
}
 
enum  esphome::sx127x::SX127xRxBw : uint8_t {
  esphome::sx127x::RX_BW_2_6 = 0x17 , esphome::sx127x::RX_BW_3_1 = 0x0F , esphome::sx127x::RX_BW_3_9 = 0x07 , esphome::sx127x::RX_BW_5_2 = 0x16 ,
  esphome::sx127x::RX_BW_6_3 = 0x0E , esphome::sx127x::RX_BW_7_8 = 0x06 , esphome::sx127x::RX_BW_10_4 = 0x15 , esphome::sx127x::RX_BW_12_5 = 0x0D ,
  esphome::sx127x::RX_BW_15_6 = 0x05 , esphome::sx127x::RX_BW_20_8 = 0x14 , esphome::sx127x::RX_BW_25_0 = 0x0C , esphome::sx127x::RX_BW_31_3 = 0x04 ,
  esphome::sx127x::RX_BW_41_7 = 0x13 , esphome::sx127x::RX_BW_50_0 = 0x0B , esphome::sx127x::RX_BW_62_5 = 0x03 , esphome::sx127x::RX_BW_83_3 = 0x12 ,
  esphome::sx127x::RX_BW_100_0 = 0x0A , esphome::sx127x::RX_BW_125_0 = 0x02 , esphome::sx127x::RX_BW_166_7 = 0x11 , esphome::sx127x::RX_BW_200_0 = 0x09 ,
  esphome::sx127x::RX_BW_250_0 = 0x01
}
 
enum  esphome::sx127x::SX127xOokPeak : uint8_t {
  esphome::sx127x::BIT_SYNC_ON = 0x20 , esphome::sx127x::BIT_SYNC_OFF = 0x00 , esphome::sx127x::OOK_THRESH_AVG = 0x10 , esphome::sx127x::OOK_THRESH_PEAK = 0x08 ,
  esphome::sx127x::OOK_THRESH_FIXED = 0x00 , esphome::sx127x::OOK_THRESH_STEP_6_0 = 0x07 , esphome::sx127x::OOK_THRESH_STEP_5_0 = 0x06 , esphome::sx127x::OOK_THRESH_STEP_4_0 = 0x05 ,
  esphome::sx127x::OOK_THRESH_STEP_3_0 = 0x04 , esphome::sx127x::OOK_THRESH_STEP_2_0 = 0x03 , esphome::sx127x::OOK_THRESH_STEP_1_5 = 0x02 , esphome::sx127x::OOK_THRESH_STEP_1_0 = 0x01 ,
  esphome::sx127x::OOK_THRESH_STEP_0_5 = 0x00
}
 
enum  esphome::sx127x::SX127xOokAvg : uint8_t {
  esphome::sx127x::OOK_THRESH_DEC_16 = 0xE0 , esphome::sx127x::OOK_THRESH_DEC_8 = 0xC0 , esphome::sx127x::OOK_THRESH_DEC_4 = 0xA0 , esphome::sx127x::OOK_THRESH_DEC_2 = 0x80 ,
  esphome::sx127x::OOK_THRESH_DEC_1_8 = 0x60 , esphome::sx127x::OOK_THRESH_DEC_1_4 = 0x40 , esphome::sx127x::OOK_THRESH_DEC_1_2 = 0x20 , esphome::sx127x::OOK_THRESH_DEC_1 = 0x00 ,
  esphome::sx127x::OOK_AVG_RESERVED = 0x10
}
 
enum  esphome::sx127x::SX127xAfcFei : uint8_t { esphome::sx127x::AFC_AUTO_CLEAR_ON = 0x01 }
 
enum  esphome::sx127x::SX127xPreambleDetect : uint8_t { esphome::sx127x::PREAMBLE_DETECTOR_ON = 0x80 , esphome::sx127x::PREAMBLE_DETECTOR_OFF = 0x00 , esphome::sx127x::PREAMBLE_DETECTOR_SIZE_SHIFT = 5 , esphome::sx127x::PREAMBLE_DETECTOR_TOL_SHIFT = 0 }
 
enum  esphome::sx127x::SX127xSyncConfig : uint8_t {
  esphome::sx127x::AUTO_RESTART_PLL_LOCK = 0x80 , esphome::sx127x::AUTO_RESTART_NO_LOCK = 0x40 , esphome::sx127x::AUTO_RESTART_OFF = 0x00 , esphome::sx127x::PREAMBLE_55 = 0x20 ,
  esphome::sx127x::PREAMBLE_AA = 0x00 , esphome::sx127x::SYNC_ON = 0x10 , esphome::sx127x::SYNC_OFF = 0x00
}
 
enum  esphome::sx127x::SX127xPacketConfig1 : uint8_t { esphome::sx127x::VARIABLE_LENGTH = 0x80 , esphome::sx127x::FIXED_LENGTH = 0x00 , esphome::sx127x::CRC_ON = 0x10 , esphome::sx127x::CRC_OFF = 0x00 }
 
enum  esphome::sx127x::SX127xPacketConfig2 : uint8_t { esphome::sx127x::CONTINUOUS_MODE = 0x00 , esphome::sx127x::PACKET_MODE = 0x40 }
 
enum  esphome::sx127x::SX127xFifoThresh : uint8_t { esphome::sx127x::TX_START_FIFO_EMPTY = 0x80 , esphome::sx127x::TX_START_FIFO_LEVEL = 0x00 }
 
enum  esphome::sx127x::SX127xImageCal : uint8_t {
  esphome::sx127x::AUTO_IMAGE_CAL_ON = 0x80 , esphome::sx127x::IMAGE_CAL_START = 0x40 , esphome::sx127x::IMAGE_CAL_RUNNING = 0x20 , esphome::sx127x::TEMP_CHANGE = 0x08 ,
  esphome::sx127x::TEMP_THRESHOLD_20C = 0x06 , esphome::sx127x::TEMP_THRESHOLD_15C = 0x04 , esphome::sx127x::TEMP_THRESHOLD_10C = 0x02 , esphome::sx127x::TEMP_THRESHOLD_5C = 0x00 ,
  esphome::sx127x::TEMP_MONITOR_OFF = 0x01 , esphome::sx127x::TEMP_MONITOR_ON = 0x00
}
 
enum  esphome::sx127x::SX127xIrqFlags : uint8_t {
  esphome::sx127x::RX_TIMEOUT = 0x80 , esphome::sx127x::RX_DONE = 0x40 , esphome::sx127x::PAYLOAD_CRC_ERROR = 0x20 , esphome::sx127x::VALID_HEADER = 0x10 ,
  esphome::sx127x::TX_DONE = 0x08 , esphome::sx127x::CAD_DONE = 0x04 , esphome::sx127x::FHSS_CHANGE_CHANNEL = 0x02 , esphome::sx127x::CAD_DETECTED = 0x01
}
 
enum  esphome::sx127x::SX127xModemCfg1 : uint8_t {
  esphome::sx127x::BW_7_8 = 0x00 , esphome::sx127x::BW_10_4 = 0x10 , esphome::sx127x::BW_15_6 = 0x20 , esphome::sx127x::BW_20_8 = 0x30 ,
  esphome::sx127x::BW_31_3 = 0x40 , esphome::sx127x::BW_41_7 = 0x50 , esphome::sx127x::BW_62_5 = 0x60 , esphome::sx127x::BW_125_0 = 0x70 ,
  esphome::sx127x::BW_250_0 = 0x80 , esphome::sx127x::BW_500_0 = 0x90 , esphome::sx127x::CODING_RATE_4_5 = 0x02 , esphome::sx127x::CODING_RATE_4_6 = 0x04 ,
  esphome::sx127x::CODING_RATE_4_7 = 0x06 , esphome::sx127x::CODING_RATE_4_8 = 0x08 , esphome::sx127x::IMPLICIT_HEADER = 0x01 , esphome::sx127x::EXPLICIT_HEADER = 0x00
}
 
enum  esphome::sx127x::SX127xModemCfg2 : uint8_t { esphome::sx127x::SPREADING_FACTOR_SHIFT = 4 , esphome::sx127x::TX_CONTINOUS_MODE = 0x08 , esphome::sx127x::RX_PAYLOAD_CRC_ON = 0x04 , esphome::sx127x::RX_PAYLOAD_CRC_OFF = 0x00 }
 
enum  esphome::sx127x::SX127xModemCfg3 : uint8_t { esphome::sx127x::LOW_DATA_RATE_OPTIMIZE_ON = 0x08 , esphome::sx127x::MODEM_AGC_AUTO_ON = 0x04 }