ESPHome  2024.5.0
Namespaces | Variables
at581x.cpp File Reference

Go to the source code of this file.

Namespaces

 esphome
 This is a workaround until we can figure out a way to get the tflite-micro idf component code available in CI.
 
 esphome::at581x
 

Variables

const uint8_t GAIN_ADDR_TABLE [] = {0x5c, 0x63}
 
const uint8_t GAIN5C_TABLE [] = {0x08, 0x18, 0x28, 0x38, 0x48, 0x58, 0x68, 0x78, 0x88, 0x98, 0xa8, 0xb8, 0xc8}
 
const uint8_t GAIN63_TABLE [] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}
 
const uint8_t GAIN61_VALUE = 0xCA
 
const uint8_t POWER_TABLE [] = {48, 56, 63, 70, 77, 91, 105, 115, 40, 44, 47, 51, 54, 61, 68, 78}
 
const uint8_t POWER67_TABLE [] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7}
 
const uint8_t POWER68_TABLE []
 
const uint8_t FREQ_ADDR = 0x61
 
const uint16_t FREQ_TABLE [] = {5696, 5715, 5730, 5748, 5765, 5784, 5800, 5819, 5836, 5851, 5869, 5888}
 
const uint8_t FREQ5F_TABLE [] = {0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x40, 0x41, 0x42, 0x43}
 
const uint8_t FREQ60_TABLE [] = {0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e, 0x9e, 0x9e, 0x9e}
 
const uint8_t RF_OFF_TABLE [] = {0x46, 0xaa, 0x50}
 
const uint8_t RF_ON_TABLE [] = {0x45, 0x55, 0xA0}
 
const uint8_t RF_REG_ADDR [] = {0x5d, 0x62, 0x51}
 
const uint8_t HIGH_LEVEL_DELAY_CONTROL_ADDR = 0x41
 
const uint8_t HIGH_LEVEL_DELAY_VALUE_ADDR = 0x42
 
const uint8_t RESET_ADDR = 0x00
 
const uint8_t SIGNAL_DETECTION_THRESHOLD_ADDR_LO = 0x10
 
const uint8_t SIGNAL_DETECTION_THRESHOLD_ADDR_HI = 0x11
 
const uint8_t POWER_THRESHOLD_ADDR_HI = 0x68
 
const uint8_t POWER_THRESHOLD_ADDR_LO = 0x67
 
const uint8_t PWR_WORK_TIME_EN = 8
 
const uint8_t PWR_BURST_TIME_EN = 32
 
const uint8_t PWR_THRESH_EN = 64
 
const uint8_t PWR_THRESH_VAL_EN = 128
 
const uint8_t TRIGGER_BASE_TIME_ADDR = 0x3D
 
const uint8_t PROTECT_TIME_ADDR = 0x4E
 
const uint8_t TRIGGER_KEEP_TIME_ADDR = 0x42
 
const uint8_t TIME41_VALUE = 1
 
const uint8_t SELF_CHECK_TIME_ADDR = 0x38
 

Variable Documentation

◆ FREQ5F_TABLE

const uint8_t FREQ5F_TABLE[] = {0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x40, 0x41, 0x42, 0x43}

Definition at line 19 of file at581x.cpp.

◆ FREQ60_TABLE

const uint8_t FREQ60_TABLE[] = {0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e, 0x9e, 0x9e, 0x9e}

Value for RF and analog modules switch (p10).

Definition at line 20 of file at581x.cpp.

◆ FREQ_ADDR

const uint8_t FREQ_ADDR = 0x61

< Frequency Configuration table (p14/15 of datasheet).

Definition at line 17 of file at581x.cpp.

◆ FREQ_TABLE

const uint16_t FREQ_TABLE[] = {5696, 5715, 5730, 5748, 5765, 5784, 5800, 5819, 5836, 5851, 5869, 5888}

Definition at line 18 of file at581x.cpp.

◆ GAIN5C_TABLE

const uint8_t GAIN5C_TABLE[] = {0x08, 0x18, 0x28, 0x38, 0x48, 0x58, 0x68, 0x78, 0x88, 0x98, 0xa8, 0xb8, 0xc8}

Definition at line 6 of file at581x.cpp.

◆ GAIN61_VALUE

const uint8_t GAIN61_VALUE = 0xCA

Definition at line 8 of file at581x.cpp.

◆ GAIN63_TABLE

const uint8_t GAIN63_TABLE[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}

Definition at line 7 of file at581x.cpp.

◆ GAIN_ADDR_TABLE

const uint8_t GAIN_ADDR_TABLE[] = {0x5c, 0x63}

Definition at line 5 of file at581x.cpp.

◆ HIGH_LEVEL_DELAY_CONTROL_ADDR

const uint8_t HIGH_LEVEL_DELAY_CONTROL_ADDR = 0x41

Time_flag_out_ctrl 0x01

Definition at line 28 of file at581x.cpp.

◆ HIGH_LEVEL_DELAY_VALUE_ADDR

const uint8_t HIGH_LEVEL_DELAY_VALUE_ADDR = 0x42

Time_flag_out_1 Bit<7:0>

Definition at line 29 of file at581x.cpp.

◆ POWER67_TABLE

const uint8_t POWER67_TABLE[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7}

Definition at line 12 of file at581x.cpp.

◆ POWER68_TABLE

const uint8_t POWER68_TABLE[]
Initial value:
= {0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8,
24, 24, 24, 24, 24, 24, 24, 24}

Definition at line 13 of file at581x.cpp.

◆ POWER_TABLE

const uint8_t POWER_TABLE[] = {48, 56, 63, 70, 77, 91, 105, 115, 40, 44, 47, 51, 54, 61, 68, 78}

< Power consumption configuration table (p12).

Definition at line 11 of file at581x.cpp.

◆ POWER_THRESHOLD_ADDR_HI

const uint8_t POWER_THRESHOLD_ADDR_HI = 0x68

Definition at line 38 of file at581x.cpp.

◆ POWER_THRESHOLD_ADDR_LO

const uint8_t POWER_THRESHOLD_ADDR_LO = 0x67

Definition at line 39 of file at581x.cpp.

◆ PROTECT_TIME_ADDR

const uint8_t PROTECT_TIME_ADDR = 0x4E

Definition at line 47 of file at581x.cpp.

◆ PWR_BURST_TIME_EN

const uint8_t PWR_BURST_TIME_EN = 32

Definition at line 41 of file at581x.cpp.

◆ PWR_THRESH_EN

const uint8_t PWR_THRESH_EN = 64

Definition at line 42 of file at581x.cpp.

◆ PWR_THRESH_VAL_EN

const uint8_t PWR_THRESH_VAL_EN = 128

Definition at line 43 of file at581x.cpp.

◆ PWR_WORK_TIME_EN

const uint8_t PWR_WORK_TIME_EN = 8

Definition at line 40 of file at581x.cpp.

◆ RESET_ADDR

const uint8_t RESET_ADDR = 0x00

Sensing distance address

Definition at line 31 of file at581x.cpp.

◆ RF_OFF_TABLE

const uint8_t RF_OFF_TABLE[] = {0x46, 0xaa, 0x50}

Definition at line 23 of file at581x.cpp.

◆ RF_ON_TABLE

const uint8_t RF_ON_TABLE[] = {0x45, 0x55, 0xA0}

Definition at line 24 of file at581x.cpp.

◆ RF_REG_ADDR

const uint8_t RF_REG_ADDR[] = {0x5d, 0x62, 0x51}

Registers of Lighting delay time. Unit: ms, min 2s (p8)

Definition at line 25 of file at581x.cpp.

◆ SELF_CHECK_TIME_ADDR

const uint8_t SELF_CHECK_TIME_ADDR = 0x38

Definition at line 50 of file at581x.cpp.

◆ SIGNAL_DETECTION_THRESHOLD_ADDR_HI

const uint8_t SIGNAL_DETECTION_THRESHOLD_ADDR_HI = 0x11

Bit field value for power registers

Definition at line 35 of file at581x.cpp.

◆ SIGNAL_DETECTION_THRESHOLD_ADDR_LO

const uint8_t SIGNAL_DETECTION_THRESHOLD_ADDR_LO = 0x10

Definition at line 34 of file at581x.cpp.

◆ TIME41_VALUE

const uint8_t TIME41_VALUE = 1

Definition at line 49 of file at581x.cpp.

◆ TRIGGER_BASE_TIME_ADDR

const uint8_t TRIGGER_BASE_TIME_ADDR = 0x3D

< Times

Definition at line 46 of file at581x.cpp.

◆ TRIGGER_KEEP_TIME_ADDR

const uint8_t TRIGGER_KEEP_TIME_ADDR = 0x42

Definition at line 48 of file at581x.cpp.