ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
cc1101defs.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::cc1101
 

Enumerations

enum class  esphome::cc1101::Register : uint8_t {
  esphome::cc1101::IOCFG2 = 0x00 , esphome::cc1101::IOCFG1 = 0x01 , esphome::cc1101::IOCFG0 = 0x02 , esphome::cc1101::FIFOTHR = 0x03 ,
  esphome::cc1101::SYNC1 = 0x04 , esphome::cc1101::SYNC0 = 0x05 , esphome::cc1101::PKTLEN = 0x06 , esphome::cc1101::PKTCTRL1 = 0x07 ,
  esphome::cc1101::PKTCTRL0 = 0x08 , esphome::cc1101::ADDR = 0x09 , esphome::cc1101::CHANNR = 0x0A , esphome::cc1101::FSCTRL1 = 0x0B ,
  esphome::cc1101::FSCTRL0 = 0x0C , esphome::cc1101::FREQ2 = 0x0D , esphome::cc1101::FREQ1 = 0x0E , esphome::cc1101::FREQ0 = 0x0F ,
  esphome::cc1101::MDMCFG4 = 0x10 , esphome::cc1101::MDMCFG3 = 0x11 , esphome::cc1101::MDMCFG2 = 0x12 , esphome::cc1101::MDMCFG1 = 0x13 ,
  esphome::cc1101::MDMCFG0 = 0x14 , esphome::cc1101::DEVIATN = 0x15 , esphome::cc1101::MCSM2 = 0x16 , esphome::cc1101::MCSM1 = 0x17 ,
  esphome::cc1101::MCSM0 = 0x18 , esphome::cc1101::FOCCFG = 0x19 , esphome::cc1101::BSCFG = 0x1A , esphome::cc1101::AGCCTRL2 = 0x1B ,
  esphome::cc1101::AGCCTRL1 = 0x1C , esphome::cc1101::AGCCTRL0 = 0x1D , esphome::cc1101::WOREVT1 = 0x1E , esphome::cc1101::WOREVT0 = 0x1F ,
  esphome::cc1101::WORCTRL = 0x20 , esphome::cc1101::FREND1 = 0x21 , esphome::cc1101::FREND0 = 0x22 , esphome::cc1101::FSCAL3 = 0x23 ,
  esphome::cc1101::FSCAL2 = 0x24 , esphome::cc1101::FSCAL1 = 0x25 , esphome::cc1101::FSCAL0 = 0x26 , esphome::cc1101::RCCTRL1 = 0x27 ,
  esphome::cc1101::RCCTRL0 = 0x28 , esphome::cc1101::FSTEST = 0x29 , esphome::cc1101::PTEST = 0x2A , esphome::cc1101::AGCTEST = 0x2B ,
  esphome::cc1101::TEST2 = 0x2C , esphome::cc1101::TEST1 = 0x2D , esphome::cc1101::TEST0 = 0x2E , esphome::cc1101::UNUSED = 0x2F ,
  esphome::cc1101::PARTNUM = 0x30 , esphome::cc1101::VERSION = 0x31 , esphome::cc1101::FREQEST = 0x32 , esphome::cc1101::LQI = 0x33 ,
  esphome::cc1101::RSSI = 0x34 , esphome::cc1101::MARCSTATE = 0x35 , esphome::cc1101::WORTIME1 = 0x36 , esphome::cc1101::WORTIME0 = 0x37 ,
  esphome::cc1101::PKTSTATUS = 0x38 , esphome::cc1101::VCO_VC_DAC = 0x39 , esphome::cc1101::TXBYTES = 0x3A , esphome::cc1101::RXBYTES = 0x3B ,
  esphome::cc1101::RCCTRL1_STATUS = 0x3C , esphome::cc1101::RCCTRL0_STATUS = 0x3D , esphome::cc1101::PATABLE = 0x3E , esphome::cc1101::FIFO = 0x3F
}
 
enum class  esphome::cc1101::Command : uint8_t {
  esphome::cc1101::RES = 0x30 , esphome::cc1101::FSTXON = 0x31 , esphome::cc1101::XOFF = 0x32 , esphome::cc1101::CAL = 0x33 ,
  esphome::cc1101::RX = 0x34 , esphome::cc1101::TX = 0x35 , esphome::cc1101::IDLE = 0x36 , esphome::cc1101::WOR = 0x38 ,
  esphome::cc1101::PWD = 0x39 , esphome::cc1101::FRX = 0x3A , esphome::cc1101::FTX = 0x3B , esphome::cc1101::WORRST = 0x3C ,
  esphome::cc1101::NOP = 0x3D
}
 
enum class  esphome::cc1101::State : uint8_t {
  esphome::cc1101::SLEEP , esphome::cc1101::IDLE , esphome::cc1101::XOFF , esphome::cc1101::VCOON_MC ,
  esphome::cc1101::REGON_MC , esphome::cc1101::MANCAL , esphome::cc1101::VCOON , esphome::cc1101::REGON ,
  esphome::cc1101::STARTCAL , esphome::cc1101::BWBOOST , esphome::cc1101::FS_LOCK , esphome::cc1101::IFADCON ,
  esphome::cc1101::ENDCAL , esphome::cc1101::RX , esphome::cc1101::RX_END , esphome::cc1101::RX_RST ,
  esphome::cc1101::TXRX_SWITCH , esphome::cc1101::RXFIFO_OVERFLOW , esphome::cc1101::FSTXON , esphome::cc1101::TX ,
  esphome::cc1101::TX_END , esphome::cc1101::RXTX_SWITCH , esphome::cc1101::TXFIFO_UNDERFLOW
}
 
enum class  esphome::cc1101::RxAttenuation : uint8_t { esphome::cc1101::RX_ATTENUATION_0DB , esphome::cc1101::RX_ATTENUATION_6DB , esphome::cc1101::RX_ATTENUATION_12DB , esphome::cc1101::RX_ATTENUATION_18DB }
 
enum class  esphome::cc1101::SyncMode : uint8_t {
  esphome::cc1101::SYNC_MODE_NONE , esphome::cc1101::SYNC_MODE_15_16 , esphome::cc1101::SYNC_MODE_16_16 , esphome::cc1101::SYNC_MODE_30_32 ,
  esphome::cc1101::SYNC_MODE_NONE_CS , esphome::cc1101::SYNC_MODE_15_16_CS , esphome::cc1101::SYNC_MODE_16_16_CS , esphome::cc1101::SYNC_MODE_30_32_CS
}
 
enum class  esphome::cc1101::Modulation : uint8_t {
  esphome::cc1101::MODULATION_2_FSK , esphome::cc1101::MODULATION_GFSK , esphome::cc1101::MODULATION_UNUSED_2 , esphome::cc1101::MODULATION_ASK_OOK ,
  esphome::cc1101::MODULATION_4_FSK , esphome::cc1101::MODULATION_UNUSED_5 , esphome::cc1101::MODULATION_UNUSED_6 , esphome::cc1101::MODULATION_MSK
}
 
enum class  esphome::cc1101::MagnTarget : uint8_t {
  esphome::cc1101::MAGN_TARGET_24DB , esphome::cc1101::MAGN_TARGET_27DB , esphome::cc1101::MAGN_TARGET_30DB , esphome::cc1101::MAGN_TARGET_33DB ,
  esphome::cc1101::MAGN_TARGET_36DB , esphome::cc1101::MAGN_TARGET_38DB , esphome::cc1101::MAGN_TARGET_40DB , esphome::cc1101::MAGN_TARGET_42DB
}
 
enum class  esphome::cc1101::MaxLnaGain : uint8_t {
  esphome::cc1101::MAX_LNA_GAIN_DEFAULT , esphome::cc1101::MAX_LNA_GAIN_MINUS_2P6DB , esphome::cc1101::MAX_LNA_GAIN_MINUS_6P1DB , esphome::cc1101::MAX_LNA_GAIN_MINUS_7P4DB ,
  esphome::cc1101::MAX_LNA_GAIN_MINUS_9P2DB , esphome::cc1101::MAX_LNA_GAIN_MINUS_11P5DB , esphome::cc1101::MAX_LNA_GAIN_MINUS_14P6DB , esphome::cc1101::MAX_LNA_GAIN_MINUS_17P1DB
}
 
enum class  esphome::cc1101::MaxDvgaGain : uint8_t { esphome::cc1101::MAX_DVGA_GAIN_DEFAULT , esphome::cc1101::MAX_DVGA_GAIN_MINUS_1 , esphome::cc1101::MAX_DVGA_GAIN_MINUS_2 , esphome::cc1101::MAX_DVGA_GAIN_MINUS_3 }
 
enum class  esphome::cc1101::CarrierSenseRelThr : uint8_t { esphome::cc1101::CARRIER_SENSE_REL_THR_DEFAULT , esphome::cc1101::CARRIER_SENSE_REL_THR_PLUS_6DB , esphome::cc1101::CARRIER_SENSE_REL_THR_PLUS_10DB , esphome::cc1101::CARRIER_SENSE_REL_THR_PLUS_14DB }
 
enum class  esphome::cc1101::FilterLengthFskMsk : uint8_t { esphome::cc1101::FILTER_LENGTH_8DB , esphome::cc1101::FILTER_LENGTH_16DB , esphome::cc1101::FILTER_LENGTH_32DB , esphome::cc1101::FILTER_LENGTH_64DB }
 
enum class  esphome::cc1101::FilterLengthAskOok : uint8_t { esphome::cc1101::FILTER_LENGTH_4DB , esphome::cc1101::FILTER_LENGTH_8DB , esphome::cc1101::FILTER_LENGTH_12DB , esphome::cc1101::FILTER_LENGTH_16DB }
 
enum class  esphome::cc1101::Freeze : uint8_t { esphome::cc1101::FREEZE_DEFAULT , esphome::cc1101::FREEZE_ON_SYNC , esphome::cc1101::FREEZE_ANALOG_ONLY , esphome::cc1101::FREEZE_ANALOG_AND_DIGITAL }
 
enum class  esphome::cc1101::WaitTime : uint8_t { esphome::cc1101::WAIT_TIME_8_SAMPLES , esphome::cc1101::WAIT_TIME_16_SAMPLES , esphome::cc1101::WAIT_TIME_24_SAMPLES , esphome::cc1101::WAIT_TIME_32_SAMPLES }
 
enum class  esphome::cc1101::HystLevel : uint8_t { esphome::cc1101::HYST_LEVEL_NONE , esphome::cc1101::HYST_LEVEL_LOW , esphome::cc1101::HYST_LEVEL_MEDIUM , esphome::cc1101::HYST_LEVEL_HIGH }
 
enum class  esphome::cc1101::PacketFormat : uint8_t { esphome::cc1101::PACKET_FORMAT_FIFO , esphome::cc1101::PACKET_FORMAT_SYNC_SERIAL , esphome::cc1101::PACKET_FORMAT_RANDOM_TX , esphome::cc1101::PACKET_FORMAT_ASYNC_SERIAL }
 
enum class  esphome::cc1101::LengthConfig : uint8_t { esphome::cc1101::LENGTH_CONFIG_FIXED , esphome::cc1101::LENGTH_CONFIG_VARIABLE , esphome::cc1101::LENGTH_CONFIG_INFINITE }
 

Functions

struct esphome::cc1101::__attribute__ ((packed)) CC1101State