mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-31 14:22:14 +00:00
refactor(lp_ana_periph): sync the reg names to TRM (part2)
This commit is contained in:
@@ -619,13 +619,13 @@ extern "C" {
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER1_REG (DR_REG_LP_ANALOG_PERI_BASE + 0x110)
|
||||
/** LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN : R/W; bitpos: [0]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN : R/W; bitpos: [0]; default: 0;
|
||||
* Reserved
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN (BIT(0))
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN_M (LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN_V << LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BASELINE_EN_S 0
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN (BIT(0))
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_M (LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_V << LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_NN_DISUPDATE_BENCHMARK_EN_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_HYSTERESIS : R/W; bitpos: [2:1]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -727,20 +727,20 @@ extern "C" {
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_FILTER3_REG (DR_REG_LP_ANALOG_PERI_BASE + 0x118)
|
||||
/** LP_ANALOG_PERI_TOUCH_BASELINE_SW : R/W; bitpos: [15:0]; default: 0;
|
||||
/** LP_ANALOG_PERI_TOUCH_BENCHMARK_SW : R/W; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_M (LP_ANALOG_PERI_TOUCH_BASELINE_SW_V << LP_ANALOG_PERI_TOUCH_BASELINE_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_V 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BASELINE_SW_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW : WT; bitpos: [16]; default: 0;
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_M (LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_V << LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_V 0x0000FFFFU
|
||||
#define LP_ANALOG_PERI_TOUCH_BENCHMARK_SW_S 0
|
||||
/** LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW : WT; bitpos: [16]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW (BIT(16))
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_M (LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_V << LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BASELINE_SW_S 16
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW (BIT(16))
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_M (LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_V << LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_S)
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_V 0x00000001U
|
||||
#define LP_ANALOG_PERI_TOUCH_UPDATE_BENCHMARK_SW_S 16
|
||||
|
||||
/** LP_ANALOG_PERI_TOUCH_SLP0_REG register
|
||||
* need_des
|
||||
|
@@ -510,10 +510,10 @@ typedef union {
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** touch_nn_disupdate_baseline_en : R/W; bitpos: [0]; default: 0;
|
||||
/** touch_nn_disupdate_benchmark_en : R/W; bitpos: [0]; default: 0;
|
||||
* Reserved
|
||||
*/
|
||||
uint32_t touch_nn_disupdate_baseline_en:1;
|
||||
uint32_t touch_nn_disupdate_benchmark_en:1;
|
||||
/** touch_hysteresis : R/W; bitpos: [2:1]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
@@ -585,14 +585,14 @@ typedef union {
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** touch_baseline_sw : R/W; bitpos: [15:0]; default: 0;
|
||||
/** touch_benchmark_sw : R/W; bitpos: [15:0]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_baseline_sw:16;
|
||||
/** touch_update_baseline_sw : WT; bitpos: [16]; default: 0;
|
||||
uint32_t touch_benchmark_sw:16;
|
||||
/** touch_update_benchmark_sw : WT; bitpos: [16]; default: 0;
|
||||
* need_des
|
||||
*/
|
||||
uint32_t touch_update_baseline_sw:1;
|
||||
uint32_t touch_update_benchmark_sw:1;
|
||||
uint32_t reserved_17:15;
|
||||
};
|
||||
uint32_t val;
|
||||
@@ -750,7 +750,7 @@ typedef union {
|
||||
/** touch_data_sel : R/W; bitpos: [9:8]; default: 0;
|
||||
* The type of the output data for debugging
|
||||
* 0/1: raw data
|
||||
* 2: baseline
|
||||
* 2: benchmark
|
||||
* 3: smooth data
|
||||
*/
|
||||
uint32_t touch_data_sel:2;
|
||||
|
Reference in New Issue
Block a user