mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
302 lines
12 KiB
C
302 lines
12 KiB
C
/**
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** ANA_I2C_MST_I2C0_CTRL_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_CTRL_REG (DR_REG_ANA_I2C_MST_BASE + 0x0)
|
|
/** ANA_I2C_MST_I2C0_CTRL : R/W; bitpos: [24:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_CTRL 0x01FFFFFFU
|
|
#define ANA_I2C_MST_I2C0_CTRL_M (ANA_I2C_MST_I2C0_CTRL_V << ANA_I2C_MST_I2C0_CTRL_S)
|
|
#define ANA_I2C_MST_I2C0_CTRL_V 0x01FFFFFFU
|
|
#define ANA_I2C_MST_I2C0_CTRL_S 0
|
|
/** ANA_I2C_MST_I2C0_BUSY : RO; bitpos: [25]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_BUSY (BIT(25))
|
|
#define ANA_I2C_MST_I2C0_BUSY_M (ANA_I2C_MST_I2C0_BUSY_V << ANA_I2C_MST_I2C0_BUSY_S)
|
|
#define ANA_I2C_MST_I2C0_BUSY_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C0_BUSY_S 25
|
|
|
|
/** ANA_I2C_MST_I2C1_CTRL_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_CTRL_REG (DR_REG_ANA_I2C_MST_BASE + 0x4)
|
|
/** ANA_I2C_MST_I2C1_CTRL : R/W; bitpos: [24:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_CTRL 0x01FFFFFFU
|
|
#define ANA_I2C_MST_I2C1_CTRL_M (ANA_I2C_MST_I2C1_CTRL_V << ANA_I2C_MST_I2C1_CTRL_S)
|
|
#define ANA_I2C_MST_I2C1_CTRL_V 0x01FFFFFFU
|
|
#define ANA_I2C_MST_I2C1_CTRL_S 0
|
|
/** ANA_I2C_MST_I2C1_BUSY : RO; bitpos: [25]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_BUSY (BIT(25))
|
|
#define ANA_I2C_MST_I2C1_BUSY_M (ANA_I2C_MST_I2C1_BUSY_V << ANA_I2C_MST_I2C1_BUSY_S)
|
|
#define ANA_I2C_MST_I2C1_BUSY_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C1_BUSY_S 25
|
|
|
|
/** ANA_I2C_MST_I2C0_CONF_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_CONF_REG (DR_REG_ANA_I2C_MST_BASE + 0x8)
|
|
/** ANA_I2C_MST_I2C0_CONF : R/W; bitpos: [23:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_CONF 0x00FFFFFFU
|
|
#define ANA_I2C_MST_I2C0_CONF_M (ANA_I2C_MST_I2C0_CONF_V << ANA_I2C_MST_I2C0_CONF_S)
|
|
#define ANA_I2C_MST_I2C0_CONF_V 0x00FFFFFFU
|
|
#define ANA_I2C_MST_I2C0_CONF_S 0
|
|
/** ANA_I2C_MST_I2C0_STATUS : RO; bitpos: [31:24]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_STATUS 0x000000FFU
|
|
#define ANA_I2C_MST_I2C0_STATUS_M (ANA_I2C_MST_I2C0_STATUS_V << ANA_I2C_MST_I2C0_STATUS_S)
|
|
#define ANA_I2C_MST_I2C0_STATUS_V 0x000000FFU
|
|
#define ANA_I2C_MST_I2C0_STATUS_S 24
|
|
|
|
/** ANA_I2C_MST_I2C1_CONF_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_CONF_REG (DR_REG_ANA_I2C_MST_BASE + 0xc)
|
|
/** ANA_I2C_MST_I2C1_CONF : R/W; bitpos: [23:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_CONF 0x00FFFFFFU
|
|
#define ANA_I2C_MST_I2C1_CONF_M (ANA_I2C_MST_I2C1_CONF_V << ANA_I2C_MST_I2C1_CONF_S)
|
|
#define ANA_I2C_MST_I2C1_CONF_V 0x00FFFFFFU
|
|
#define ANA_I2C_MST_I2C1_CONF_S 0
|
|
/** ANA_I2C_MST_I2C1_STATUS : RO; bitpos: [31:24]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_STATUS 0x000000FFU
|
|
#define ANA_I2C_MST_I2C1_STATUS_M (ANA_I2C_MST_I2C1_STATUS_V << ANA_I2C_MST_I2C1_STATUS_S)
|
|
#define ANA_I2C_MST_I2C1_STATUS_V 0x000000FFU
|
|
#define ANA_I2C_MST_I2C1_STATUS_S 24
|
|
|
|
/** ANA_I2C_MST_I2C_BURST_CONF_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_BURST_CONF_REG (DR_REG_ANA_I2C_MST_BASE + 0x10)
|
|
/** ANA_I2C_MST_I2C_MST_BURST_CTRL : R/W; bitpos: [31:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST_BURST_CTRL 0xFFFFFFFFU
|
|
#define ANA_I2C_MST_I2C_MST_BURST_CTRL_M (ANA_I2C_MST_I2C_MST_BURST_CTRL_V << ANA_I2C_MST_I2C_MST_BURST_CTRL_S)
|
|
#define ANA_I2C_MST_I2C_MST_BURST_CTRL_V 0xFFFFFFFFU
|
|
#define ANA_I2C_MST_I2C_MST_BURST_CTRL_S 0
|
|
|
|
/** ANA_I2C_MST_I2C_BURST_STATUS_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_BURST_STATUS_REG (DR_REG_ANA_I2C_MST_BASE + 0x14)
|
|
/** ANA_I2C_MST_I2C_MST_BURST_DONE : RO; bitpos: [0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST_BURST_DONE (BIT(0))
|
|
#define ANA_I2C_MST_I2C_MST_BURST_DONE_M (ANA_I2C_MST_I2C_MST_BURST_DONE_V << ANA_I2C_MST_I2C_MST_BURST_DONE_S)
|
|
#define ANA_I2C_MST_I2C_MST_BURST_DONE_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C_MST_BURST_DONE_S 0
|
|
/** ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG : RO; bitpos: [1]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG (BIT(1))
|
|
#define ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG_M (ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG_V << ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG_S)
|
|
#define ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C_MST0_BURST_ERR_FLAG_S 1
|
|
/** ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG : RO; bitpos: [2]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG (BIT(2))
|
|
#define ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG_M (ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG_V << ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG_S)
|
|
#define ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C_MST1_BURST_ERR_FLAG_S 2
|
|
/** ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT : R/W; bitpos: [31:20]; default: 1024;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT 0x00000FFFU
|
|
#define ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT_M (ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT_V << ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT_S)
|
|
#define ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT_V 0x00000FFFU
|
|
#define ANA_I2C_MST_I2C_MST_BURST_TIMEOUT_CNT_S 20
|
|
|
|
/** ANA_I2C_MST_ANA_CONF0_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF0_REG (DR_REG_ANA_I2C_MST_BASE + 0x18)
|
|
/** ANA_I2C_MST_ANA_CONF0 : R/W; bitpos: [23:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF0 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF0_M (ANA_I2C_MST_ANA_CONF0_V << ANA_I2C_MST_ANA_CONF0_S)
|
|
#define ANA_I2C_MST_ANA_CONF0_V 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF0_S 0
|
|
/** ANA_I2C_MST_ANA_STATUS0 : RO; bitpos: [31:24]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_STATUS0 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS0_M (ANA_I2C_MST_ANA_STATUS0_V << ANA_I2C_MST_ANA_STATUS0_S)
|
|
#define ANA_I2C_MST_ANA_STATUS0_V 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS0_S 24
|
|
|
|
/** ANA_I2C_MST_ANA_CONF1_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF1_REG (DR_REG_ANA_I2C_MST_BASE + 0x1c)
|
|
/** ANA_I2C_MST_ANA_CONF1 : R/W; bitpos: [23:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF1 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF1_M (ANA_I2C_MST_ANA_CONF1_V << ANA_I2C_MST_ANA_CONF1_S)
|
|
#define ANA_I2C_MST_ANA_CONF1_V 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF1_S 0
|
|
/** ANA_I2C_MST_ANA_STATUS1 : RO; bitpos: [31:24]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_STATUS1 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS1_M (ANA_I2C_MST_ANA_STATUS1_V << ANA_I2C_MST_ANA_STATUS1_S)
|
|
#define ANA_I2C_MST_ANA_STATUS1_V 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS1_S 24
|
|
|
|
/** ANA_I2C_MST_ANA_CONF2_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF2_REG (DR_REG_ANA_I2C_MST_BASE + 0x20)
|
|
/** ANA_I2C_MST_ANA_CONF2 : R/W; bitpos: [23:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_CONF2 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF2_M (ANA_I2C_MST_ANA_CONF2_V << ANA_I2C_MST_ANA_CONF2_S)
|
|
#define ANA_I2C_MST_ANA_CONF2_V 0x00FFFFFFU
|
|
#define ANA_I2C_MST_ANA_CONF2_S 0
|
|
/** ANA_I2C_MST_ANA_STATUS2 : RO; bitpos: [31:24]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ANA_STATUS2 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS2_M (ANA_I2C_MST_ANA_STATUS2_V << ANA_I2C_MST_ANA_STATUS2_S)
|
|
#define ANA_I2C_MST_ANA_STATUS2_V 0x000000FFU
|
|
#define ANA_I2C_MST_ANA_STATUS2_S 24
|
|
|
|
/** ANA_I2C_MST_I2C0_CTRL1_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_CTRL1_REG (DR_REG_ANA_I2C_MST_BASE + 0x24)
|
|
/** ANA_I2C_MST_I2C0_SCL_PULSE_DUR : R/W; bitpos: [5:0]; default: 2;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_SCL_PULSE_DUR 0x0000003FU
|
|
#define ANA_I2C_MST_I2C0_SCL_PULSE_DUR_M (ANA_I2C_MST_I2C0_SCL_PULSE_DUR_V << ANA_I2C_MST_I2C0_SCL_PULSE_DUR_S)
|
|
#define ANA_I2C_MST_I2C0_SCL_PULSE_DUR_V 0x0000003FU
|
|
#define ANA_I2C_MST_I2C0_SCL_PULSE_DUR_S 0
|
|
/** ANA_I2C_MST_I2C0_SDA_SIDE_GUARD : R/W; bitpos: [10:6]; default: 1;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C0_SDA_SIDE_GUARD 0x0000001FU
|
|
#define ANA_I2C_MST_I2C0_SDA_SIDE_GUARD_M (ANA_I2C_MST_I2C0_SDA_SIDE_GUARD_V << ANA_I2C_MST_I2C0_SDA_SIDE_GUARD_S)
|
|
#define ANA_I2C_MST_I2C0_SDA_SIDE_GUARD_V 0x0000001FU
|
|
#define ANA_I2C_MST_I2C0_SDA_SIDE_GUARD_S 6
|
|
|
|
/** ANA_I2C_MST_I2C1_CTRL1_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_CTRL1_REG (DR_REG_ANA_I2C_MST_BASE + 0x28)
|
|
/** ANA_I2C_MST_I2C1_SCL_PULSE_DUR : R/W; bitpos: [5:0]; default: 2;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_SCL_PULSE_DUR 0x0000003FU
|
|
#define ANA_I2C_MST_I2C1_SCL_PULSE_DUR_M (ANA_I2C_MST_I2C1_SCL_PULSE_DUR_V << ANA_I2C_MST_I2C1_SCL_PULSE_DUR_S)
|
|
#define ANA_I2C_MST_I2C1_SCL_PULSE_DUR_V 0x0000003FU
|
|
#define ANA_I2C_MST_I2C1_SCL_PULSE_DUR_S 0
|
|
/** ANA_I2C_MST_I2C1_SDA_SIDE_GUARD : R/W; bitpos: [10:6]; default: 1;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C1_SDA_SIDE_GUARD 0x0000001FU
|
|
#define ANA_I2C_MST_I2C1_SDA_SIDE_GUARD_M (ANA_I2C_MST_I2C1_SDA_SIDE_GUARD_V << ANA_I2C_MST_I2C1_SDA_SIDE_GUARD_S)
|
|
#define ANA_I2C_MST_I2C1_SDA_SIDE_GUARD_V 0x0000001FU
|
|
#define ANA_I2C_MST_I2C1_SDA_SIDE_GUARD_S 6
|
|
|
|
/** ANA_I2C_MST_HW_I2C_CTRL_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_HW_I2C_CTRL_REG (DR_REG_ANA_I2C_MST_BASE + 0x2c)
|
|
/** ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR : R/W; bitpos: [5:0]; default: 2;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR 0x0000003FU
|
|
#define ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR_M (ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR_V << ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR_S)
|
|
#define ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR_V 0x0000003FU
|
|
#define ANA_I2C_MST_HW_I2C_SCL_PULSE_DUR_S 0
|
|
/** ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD : R/W; bitpos: [10:6]; default: 1;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD 0x0000001FU
|
|
#define ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD_M (ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD_V << ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD_S)
|
|
#define ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD_V 0x0000001FU
|
|
#define ANA_I2C_MST_HW_I2C_SDA_SIDE_GUARD_S 6
|
|
/** ANA_I2C_MST_ARBITER_DIS : R/W; bitpos: [11]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_ARBITER_DIS (BIT(11))
|
|
#define ANA_I2C_MST_ARBITER_DIS_M (ANA_I2C_MST_ARBITER_DIS_V << ANA_I2C_MST_ARBITER_DIS_S)
|
|
#define ANA_I2C_MST_ARBITER_DIS_V 0x00000001U
|
|
#define ANA_I2C_MST_ARBITER_DIS_S 11
|
|
|
|
/** ANA_I2C_MST_NOUSE_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_NOUSE_REG (DR_REG_ANA_I2C_MST_BASE + 0x30)
|
|
/** ANA_I2C_MST_I2C_MST_NOUSE : R/W; bitpos: [31:0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST_NOUSE 0xFFFFFFFFU
|
|
#define ANA_I2C_MST_I2C_MST_NOUSE_M (ANA_I2C_MST_I2C_MST_NOUSE_V << ANA_I2C_MST_I2C_MST_NOUSE_S)
|
|
#define ANA_I2C_MST_I2C_MST_NOUSE_V 0xFFFFFFFFU
|
|
#define ANA_I2C_MST_I2C_MST_NOUSE_S 0
|
|
|
|
/** ANA_I2C_MST_CLK160M_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_CLK160M_REG (DR_REG_ANA_I2C_MST_BASE + 0x34)
|
|
/** ANA_I2C_MST_CLK_I2C_MST_SEL_160M : R/W; bitpos: [0]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_CLK_I2C_MST_SEL_160M (BIT(0))
|
|
#define ANA_I2C_MST_CLK_I2C_MST_SEL_160M_M (ANA_I2C_MST_CLK_I2C_MST_SEL_160M_V << ANA_I2C_MST_CLK_I2C_MST_SEL_160M_S)
|
|
#define ANA_I2C_MST_CLK_I2C_MST_SEL_160M_V 0x00000001U
|
|
#define ANA_I2C_MST_CLK_I2C_MST_SEL_160M_S 0
|
|
|
|
/** ANA_I2C_MST_DATE_REG register
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_DATE_REG (DR_REG_ANA_I2C_MST_BASE + 0x38)
|
|
/** ANA_I2C_MST_DATE : R/W; bitpos: [27:0]; default: 35656448;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_DATE 0x0FFFFFFFU
|
|
#define ANA_I2C_MST_DATE_M (ANA_I2C_MST_DATE_V << ANA_I2C_MST_DATE_S)
|
|
#define ANA_I2C_MST_DATE_V 0x0FFFFFFFU
|
|
#define ANA_I2C_MST_DATE_S 0
|
|
/** ANA_I2C_MST_I2C_MST_CLK_EN : R/W; bitpos: [28]; default: 0;
|
|
* need des
|
|
*/
|
|
#define ANA_I2C_MST_I2C_MST_CLK_EN (BIT(28))
|
|
#define ANA_I2C_MST_I2C_MST_CLK_EN_M (ANA_I2C_MST_I2C_MST_CLK_EN_V << ANA_I2C_MST_I2C_MST_CLK_EN_S)
|
|
#define ANA_I2C_MST_I2C_MST_CLK_EN_V 0x00000001U
|
|
#define ANA_I2C_MST_I2C_MST_CLK_EN_S 28
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|