10#ifndef HAL_TSENSOR_V151_REGS_OP_H
11#define HAL_TSENSOR_V151_REGS_OP_H
29#define TSENSOR_ENABLE 1
30#define TSENSOR_DISABLE 0
31#define TSENSOR_CALIB_ENABLE 0
32#define TSENSOR_CALIB_DISABLE 1
46static inline void hal_tsensor_v151_reg_set_start(
void)
54static inline void hal_tsensor_v151_reg_set_tsensor_enable(
void)
62static inline void hal_tsensor_v151_reg_set_tsensor_disable(
void)
70static inline void hal_tsensor_v151_reg_set_tsensor_mode(uint32_t mode)
78static inline uint32_t hal_tsensor_v151_reg_is_tsensor_ready(
void)
85static inline void hal_tsensor_v151_reg_clear_sts(
void)
93static inline uint16_t hal_tsensor_v151_reg_get_data(
void)
100static inline void hal_tsensor_v151_reg_set_calib_enable(
void)
108static inline void hal_tsensor_v151_reg_set_calib_disable(
void)
116static inline void hal_tsensor_v151_reg_set_ct_sel(uint8_t temp_ct_sel)
124static inline void hal_tsensor_v151_reg_set_temp_set(uint8_t temp_set)
132static inline void hal_tsensor_v151_reg_set_temp_scan_dft(uint8_t temp_scan_dft)
140static inline void hal_tsensor_v151_reg_set_temp_high_limit(uint16_t temp_code)
148static inline void hal_tsensor_v151_reg_set_temp_low_limit(uint16_t temp_code)
156static inline void hal_tsensor_v151_reg_set_overtemp_threshold(uint16_t temp_code)
164static inline void hal_tsensor_v151_reg_set_overtemp_protect_enable(
void)
172static inline void hal_tsensor_v151_reg_set_overtemp_protect_disable(
void)
180static inline void hal_tsensor_v151_reg_set_tsensor_done_intr_enable(uint8_t value)
188static inline void hal_tsensor_v151_reg_set_out_temp_threshold_intr_enable(uint8_t value)
196static inline void hal_tsensor_v151_reg_set_overtemp_intr_enable(uint8_t value)
204static inline uint32_t hal_tsensor_v151_reg_get_temp_intr_enable_status(
void)
209static inline void hal_tsensor_v151_reg_clr_temp_intr(
void)
217static inline uint32_t hal_tsensor_v151_reg_get_temp_intr_status(
void)
222static inline void hal_tsensor_v151_reg_set_auto_refresh_period(uint32_t period)
230static inline void hal_tsensor_v151_reg_set_auto_refresh_enable(uint8_t value)
#define TSENSOR_COMM_REGS_OFFSET
Definition hal_tsensor_v151_regs_def.h:27
#define TSENSOR_CTRL_REGS_OFFSET
Definition hal_tsensor_v151_regs_def.h:28
#define TSENSOR_ENABLE
Definition hal_tsensor_v151_regs_op.h:29
uintptr_t g_hal_tsensor_regs
Definition hal_tsensor.c:13
#define TSENSOR_DISABLE
Definition hal_tsensor_v151_regs_op.h:30
#define TSENSOR_CALIB_ENABLE
Definition hal_tsensor_v151_regs_op.h:31
#define TSENSOR_CALIB_DISABLE
Definition hal_tsensor_v151_regs_op.h:32
Definition hal_tsensor_v151_regs_def.h:244
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 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 tsensor_temp_low_limit
Definition hal_tsensor_v151_regs_def.h:260
unsigned int uintptr_t
Definition td_type.h:65
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_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_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