WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_tsensor_v151_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_TSENSOR_V151_REGS_DEF_H
10#define HAL_TSENSOR_V151_REGS_DEF_H
11
12#include <stdint.h>
13#include "tsensor_porting.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19#endif /* __cplusplus */
20
27#define TSENSOR_COMM_REGS_OFFSET 0x0000
28#define TSENSOR_CTRL_REGS_OFFSET 0x0300
29
30#define TEMP_CODE_MIN 114
31#define TEMP_CODE_MAX 896
32#define TEMP_VAL_MIN (-40)
33#define TEMP_VAL_MAX 125
34
40typedef union tsensor_ctl_id_data {
41 uint32_t d32;
42 struct {
43 uint32_t tsensor_ctl_id : 16;
44 } b;
46
47
54 uint32_t d32;
55 struct {
56 uint32_t tsensor_common_reg : 16;
57 } b;
59
65typedef union tsensor_start_data {
66 uint32_t d32;
67 struct {
68 uint32_t tsensor_start : 1;
72 } b;
74
80typedef union tsensor_ctrl_data {
81 uint32_t d32;
82 struct {
83 uint32_t tsensor_enable : 1;
84 uint32_t tsensor_mode : 2;
87 } b;
89
95typedef union tsensor_sts_data {
96 uint32_t d32;
97 struct {
98 uint32_t tsensor_clr : 1;
99 uint32_t tsensor_rdy : 1;
102 uint32_t tsensor_data : 10;
110 } b;
112
118typedef union tsensor_ctrl1_data {
119 uint32_t d32;
120 struct {
121 uint32_t temp_calib : 1;
123 uint32_t temp_ct_sel : 2;
127 uint32_t temp_set : 1;
128 uint32_t temp_scan_dft : 1; /* DFT enable
129 0: Function output.
130 1: DFT output. */
131 } b;
133
145
157
172
192
199 uint32_t d32;
200 struct {
201 uint32_t tsensor_int_clr : 1;
202 } b;
204
218
230
243
244typedef struct tsensor_comm_regs {
245 volatile uint32_t tsensor_ctl_id;
246 volatile uint32_t rsv0[3];
247 volatile uint32_t tsensor_reg0;
248 volatile uint32_t tsensor_reg1;
249 volatile uint32_t tsensor_reg2;
250 volatile uint32_t tsensor_reg3;
252
253typedef struct tsensor_ctrl_regs {
254 volatile uint32_t tsensor_start;
255 volatile uint32_t tsensor_ctrl;
256 volatile uint32_t tsensor_sts;
257 volatile uint32_t rsv0;
258 volatile uint32_t tsensor_ctrl1;
259 volatile uint32_t tsensor_temp_high_limit;
260 volatile uint32_t tsensor_temp_low_limit;
261 volatile uint32_t tsensor_over_temp;
262 volatile uint32_t tsensor_temp_int_en;
263 volatile uint32_t tsensor_temp_int_clr;
264 volatile uint32_t tsensor_temp_int_sts;
265 volatile uint32_t rsv1;
266 volatile uint32_t tsensor_auto_refresh_period;
267 volatile uint32_t tsensor_auto_refresh_cfg;
269
274#ifdef __cplusplus
275#if __cplusplus
276}
277#endif /* __cplusplus */
278#endif /* __cplusplus */
279
280#endif
struct tsensor_ctrl_regs tsensor_ctrl_regs_t
union tsensor_over_temp_data tsensor_over_temp_data_t
This union represents the bit fields in the tsensor_over_temp register. Read the register into the d3...
union tsensor_auto_refresh_period_data tsensor_auto_refresh_period_data_t
This union represents the bit fields in the tsensor_auto_refresh_period register. Read the register i...
union tsensor_ctrl_data tsensor_ctrl_data_t
This union represents the bit fields in the tsensor_ctrl register. Read the register into the d32 mem...
struct tsensor_comm_regs tsensor_comm_regs_t
union tsensor_common_reg_data tsensor_common_reg_data_t
This union represents the bit fields in the tsensor_common_reg register. Read the register into the d...
union tsensor_temp_int_sts_data tsensor_temp_int_sts_data_t
This union represents the bit fields in the tsensor_temp_int_sts register. Read the register into the...
union tsensor_sts_data tsensor_sts_data_t
This union represents the bit fields in the tsensor_sts register. Read the register into the d32 memb...
union tsensor_temp_high_limit_data tsensor_temp_high_limit_data_t
This union represents the bit fields in the tsensor_temp_high_limit register. Read the register into ...
union tsensor_start_data tsensor_start_data_t
This union represents the bit fields in the tsensor_start register. Read the register into the d32 me...
union tsensor_temp_low_limit_data tsensor_temp_low_limit_data_t
This union represents the bit fields in the tsensor_temp_low_limit register. Read the register into t...
union tsensor_auto_refresh_cfg_data tsensor_auto_refresh_cfg_data_t
This union represents the bit fields in the tsensor_auto_refresh_cfg register. Read the register into...
union tsensor_ctrl1_data tsensor_ctrl1_data_t
This union represents the bit fields in the tsensor_ctrl1 register. Read the register into the d32 me...
union tsensor_temp_int_clr_data tsensor_temp_int_clr_data_t
This union represents the bit fields in the tsensor_temp_int_clr register. Read the register into the...
union tsensor_ctl_id_data tsensor_ctl_id_data_t
This union represents the bit fields in the tsensor_ctl_id register. Read the register into the d32 m...
union tsensor_temp_int_en_data tsensor_temp_int_en_data_t
This union represents the bit fields in the tsensor_temp_int_en register. Read the register into the ...
Definition hal_tsensor_v151_regs_def.h:244
volatile uint32_t tsensor_reg0
Definition hal_tsensor_v151_regs_def.h:247
volatile uint32_t rsv0[3]
Definition hal_tsensor_v151_regs_def.h:246
volatile uint32_t tsensor_reg1
Definition hal_tsensor_v151_regs_def.h:248
volatile uint32_t tsensor_reg2
Definition hal_tsensor_v151_regs_def.h:249
volatile uint32_t tsensor_ctl_id
Definition hal_tsensor_v151_regs_def.h:245
volatile uint32_t tsensor_reg3
Definition hal_tsensor_v151_regs_def.h:250
Definition hal_tsensor_v151_regs_def.h:253
volatile uint32_t tsensor_auto_refresh_cfg
Definition hal_tsensor_v151_regs_def.h:267
volatile uint32_t tsensor_sts
Definition hal_tsensor_v151_regs_def.h:256
volatile uint32_t tsensor_ctrl1
Definition hal_tsensor_v151_regs_def.h:258
volatile uint32_t tsensor_start
Definition hal_tsensor_v151_regs_def.h:254
volatile uint32_t tsensor_over_temp
Definition hal_tsensor_v151_regs_def.h:261
volatile uint32_t tsensor_temp_int_en
Definition hal_tsensor_v151_regs_def.h:262
volatile uint32_t tsensor_auto_refresh_period
Definition hal_tsensor_v151_regs_def.h:266
volatile uint32_t tsensor_ctrl
Definition hal_tsensor_v151_regs_def.h:255
volatile uint32_t rsv1
Definition hal_tsensor_v151_regs_def.h:265
volatile uint32_t tsensor_temp_int_sts
Definition hal_tsensor_v151_regs_def.h:264
volatile uint32_t tsensor_temp_int_clr
Definition hal_tsensor_v151_regs_def.h:263
volatile uint32_t tsensor_temp_high_limit
Definition hal_tsensor_v151_regs_def.h:259
volatile uint32_t rsv0
Definition hal_tsensor_v151_regs_def.h:257
volatile uint32_t tsensor_temp_low_limit
Definition hal_tsensor_v151_regs_def.h:260
This union represents the bit fields in the tsensor_auto_refresh_cfg register. Read the register into...
Definition hal_tsensor_v151_regs_def.h:236
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:237
uint32_t tsensor_auto_refresh_enable
Definition hal_tsensor_v151_regs_def.h:239
struct tsensor_auto_refresh_cfg_data::@340 b
This union represents the bit fields in the tsensor_auto_refresh_period register. Read the register i...
Definition hal_tsensor_v151_regs_def.h:224
uint32_t tsensor_auto_refresh_period
Definition hal_tsensor_v151_regs_def.h:227
struct tsensor_auto_refresh_period_data::@339 b
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:225
This union represents the bit fields in the tsensor_common_reg register. Read the register into the d...
Definition hal_tsensor_v151_regs_def.h:53
struct tsensor_common_reg_data::@323 b
uint32_t tsensor_common_reg
Definition hal_tsensor_v151_regs_def.h:56
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:54
This union represents the bit fields in the tsensor_ctl_id register. Read the register into the d32 m...
Definition hal_tsensor_v151_regs_def.h:40
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:41
uint32_t tsensor_ctl_id
Definition hal_tsensor_v151_regs_def.h:43
struct tsensor_ctl_id_data::@322 b
This union represents the bit fields in the tsensor_ctrl1 register. Read the register into the d32 me...
Definition hal_tsensor_v151_regs_def.h:118
uint32_t temp_ct_sel
Definition hal_tsensor_v151_regs_def.h:123
uint32_t temp_scan_dft
Definition hal_tsensor_v151_regs_def.h:128
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:119
uint32_t temp_set
Definition hal_tsensor_v151_regs_def.h:127
uint32_t temp_calib
Definition hal_tsensor_v151_regs_def.h:121
struct tsensor_ctrl1_data::@331 b
This union represents the bit fields in the tsensor_ctrl register. Read the register into the d32 mem...
Definition hal_tsensor_v151_regs_def.h:80
struct tsensor_ctrl_data::@326 b
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:81
uint32_t tsensor_mode
Definition hal_tsensor_v151_regs_def.h:84
uint32_t tsensor_enable
Definition hal_tsensor_v151_regs_def.h:83
This union represents the bit fields in the tsensor_over_temp register. Read the register into the d3...
Definition hal_tsensor_v151_regs_def.h:163
struct tsensor_over_temp_data::@334 b
uint32_t tsensor_overtemp_thresh_en
Definition hal_tsensor_v151_regs_def.h:167
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:164
uint32_t tsensor_overtemp_thresh
Definition hal_tsensor_v151_regs_def.h:166
This union represents the bit fields in the tsensor_start register. Read the register into the d32 me...
Definition hal_tsensor_v151_regs_def.h:65
struct tsensor_start_data::@325 b
uint32_t tsensor_start
Definition hal_tsensor_v151_regs_def.h:68
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:66
This union represents the bit fields in the tsensor_sts register. Read the register into the d32 memb...
Definition hal_tsensor_v151_regs_def.h:95
uint32_t tsensor_rdy
Definition hal_tsensor_v151_regs_def.h:99
struct tsensor_sts_data::@328 b
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:96
uint32_t tsensor_data
Definition hal_tsensor_v151_regs_def.h:102
uint32_t tsensor_clr
Definition hal_tsensor_v151_regs_def.h:98
This union represents the bit fields in the tsensor_temp_high_limit register. Read the register into ...
Definition hal_tsensor_v151_regs_def.h:139
struct tsensor_temp_high_limit_data::@332 b
uint32_t tsensor_temp_high_limit
Definition hal_tsensor_v151_regs_def.h:142
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:140
This union represents the bit fields in the tsensor_temp_int_clr register. Read the register into the...
Definition hal_tsensor_v151_regs_def.h:198
struct tsensor_temp_int_clr_data::@337 b
uint32_t tsensor_int_clr
Definition hal_tsensor_v151_regs_def.h:201
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:199
This union represents the bit fields in the tsensor_temp_int_en register. Read the register into the ...
Definition hal_tsensor_v151_regs_def.h:178
uint32_t tsensor_overtemp_int_en
Definition hal_tsensor_v151_regs_def.h:187
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:179
struct tsensor_temp_int_en_data::@335 b
uint32_t tsensor_out_thresh_int_en
Definition hal_tsensor_v151_regs_def.h:184
uint32_t tsensor_done_int_en
Definition hal_tsensor_v151_regs_def.h:181
This union represents the bit fields in the tsensor_temp_int_sts register. Read the register into the...
Definition hal_tsensor_v151_regs_def.h:210
struct tsensor_temp_int_sts_data::@338 b
uint32_t tsensor_overtemp_int_sts
Definition hal_tsensor_v151_regs_def.h:215
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:211
uint32_t tsensor_out_thresh_int_sts
Definition hal_tsensor_v151_regs_def.h:214
uint32_t tsensor_done_int_sts
Definition hal_tsensor_v151_regs_def.h:213
This union represents the bit fields in the tsensor_temp_low_limit register. Read the register into t...
Definition hal_tsensor_v151_regs_def.h:151
struct tsensor_temp_low_limit_data::@333 b
uint32_t tsensor_temp_low_limit
Definition hal_tsensor_v151_regs_def.h:154
uint32_t d32
Definition hal_tsensor_v151_regs_def.h:152