mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
125 lines
3.0 KiB
C
125 lines
3.0 KiB
C
/**
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t clk_en:1;
|
|
uint32_t reserved_1:31;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_test_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t clk_coex_lp_sel_osc_slow:1;
|
|
uint32_t clk_coex_lp_sel_osc_fast:1;
|
|
uint32_t clk_coex_lp_sel_xtal:1;
|
|
uint32_t clk_coex_lp_sel_xtal32k:1;
|
|
uint32_t clk_coex_lp_div_num:12;
|
|
uint32_t reserved_16:16;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_coex_lp_clk_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t reserved_0:1;
|
|
uint32_t clk_coex_en:1;
|
|
uint32_t clk_i2c_mst_en:1;
|
|
uint32_t reserved_3:2;
|
|
uint32_t clk_fe_mem_en:1;
|
|
uint32_t reserved_6:26;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_clk_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t reserved_0:1;
|
|
uint32_t clk_coex_fo:1;
|
|
uint32_t clk_i2c_mst_fo:1;
|
|
uint32_t reserved_3:2;
|
|
uint32_t clk_fe_mem_fo:1;
|
|
uint32_t reserved_6:26;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_clk_conf_force_on_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t pwr_tick_target:6;
|
|
uint32_t reserved_6:26;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_tick_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t reserved_0:1;
|
|
uint32_t rst_coex:1;
|
|
uint32_t rst_i2c_mst:1;
|
|
uint32_t reserved_3:29;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_rst_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t reserved_0:2;
|
|
uint32_t agc_mem_force_pu:1;
|
|
uint32_t agc_mem_force_pd:1;
|
|
uint32_t pbus_mem_force_pu:1;
|
|
uint32_t pbus_mem_force_pd:1;
|
|
uint32_t reserved_6:2;
|
|
uint32_t i2c_mst_mem_force_pu:1;
|
|
uint32_t i2c_mst_mem_force_pd:1;
|
|
uint32_t chan_freq_mem_force_pu:1;
|
|
uint32_t chan_freq_mem_force_pd:1;
|
|
uint32_t modem_pwr_mem_wp:3;
|
|
uint32_t modem_pwr_mem_wa:3;
|
|
uint32_t modem_pwr_mem_ra:2;
|
|
uint32_t modem_pwr_mem_rm:4;
|
|
uint32_t reserved_24:8;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_mem_conf_reg_t;
|
|
|
|
typedef union {
|
|
struct {
|
|
uint32_t date:28;
|
|
uint32_t reserved_28:4;
|
|
};
|
|
uint32_t val;
|
|
} modem_lpcon_date_reg_t;
|
|
|
|
|
|
typedef struct {
|
|
volatile modem_lpcon_test_conf_reg_t test_conf;
|
|
volatile modem_lpcon_coex_lp_clk_conf_reg_t coex_lp_clk_conf;
|
|
volatile modem_lpcon_clk_conf_reg_t clk_conf;
|
|
volatile modem_lpcon_clk_conf_force_on_reg_t clk_conf_force_on;
|
|
volatile modem_lpcon_tick_conf_reg_t tick_conf;
|
|
volatile modem_lpcon_rst_conf_reg_t rst_conf;
|
|
volatile modem_lpcon_mem_conf_reg_t mem_conf;
|
|
volatile modem_lpcon_date_reg_t date;
|
|
} modem_lpcon_dev_t;
|
|
|
|
extern modem_lpcon_dev_t MODEM_LPCON;
|
|
|
|
#ifndef __cplusplus
|
|
_Static_assert(sizeof(modem_lpcon_dev_t) == 0x20, "Invalid size of modem_lpcon_dev_t structure");
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|