AM62D FreeRTOS SDK  11.02.00
sdl_ip_vtm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023-25 Texas Instruments Incorporated.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 
34 #ifndef SDL_IP_VTM_H
35 #define SDL_IP_VTM_H
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 #include <stdint.h>
42 #include <stdbool.h>
43 #include <sdl/vtm/v0/sdlr_vtm.h>
44 #include <sdl/vtm/v0/soc/sdl_soc_vtm.h>
45 
46 
67 typedef uint8_t SDL_VTM_configVdCtrl;
68 #define SDL_VTM_VD_CONFIG_CTRL_VID_OPP (1U)
69 #define SDL_VTM_VD_CONFIG_CTRL_EVT_SEL (2U)
70 #define SDL_VTM_VD_CONFIG_CTRL_GLB_CFG (4U)
71 
72 
79 typedef uint8_t SDL_VTM_configTsCtrl;
80 #define SDL_VTM_VD_CONFIG_CTRL_SET_CTL (1U)
81 #define SDL_VTM_VD_CONFIG_CTRL_OUTRNG_ALRT (2U)
82 #define SDL_VTM_VD_CONFIG_CTRL_SET_THR (4U)
83 #define SDL_VTM_VD_CONFIG_CTRL_OUTRNG_ALRT_DISABLE (8U)
84 
85 
94 typedef uint8_t SDL_VTM_vid_opp;
96 #define SDL_VTM_VID_OPP_MAX_NUM ((uint8_t) 4U)
97 
98 #define SDL_VTM_VID_OPP_3_CODE ((uint8_t) 3U)
99 
100 #define SDL_VTM_VID_OPP_2_CODE ((uint8_t) 2U)
101 
102 #define SDL_VTM_VID_OPP_1_CODE ((uint8_t) 1U)
103 
104 #define SDL_VTM_VID_OPP_0_CODE ((uint8_t) 0U)
105 
106 
112 typedef uint8_t SDL_VTM_ts_stat_vd_map;
114 #define SDL_VTM_TS_STAT_VD_MAP_RTC ((uint32) 0U)
115 
116 #define SDL_VTM_TS_STAT_VD_MAP_WKUP ((uint32) 1U)
117 
118 #define SDL_VTM_TS_STAT_VD_MAP_MCU ((uint32) 2U)
119 
120 #define SDL_VTM_TS_STAT_VD_MAP_CORE ((uint32) 3U)
121 
122 #define SDL_VTM_TSTAT_VD_MAP_NOT_IMPLEMENTED ((uint32) 15U)
123 
124 
131 typedef uint16_t SDL_VTM_intrCtrl;
132 #define SDL_VTM_VD_LT_THR0_INTR_RAW_SET (1u)
133 #define SDL_VTM_VD_GT_THR1_INTR_RAW_SET (2u)
134 #define SDL_VTM_VD_GT_THR2_INTR_RAW_SET (4u)
135 #define SDL_VTM_VD_LT_THR0_INTR_RAW_CLR (8u)
136 #define SDL_VTM_VD_GT_THR1_INTR_RAW_CLR (16u)
137 #define SDL_VTM_VD_GT_THR2_INTR_RAW_CLR (32u)
138 #define SDL_VTM_VD_LT_THR0_INTR_EN_SET (64u)
139 #define SDL_VTM_VD_GT_THR1_INTR_EN_SET (128u)
140 #define SDL_VTM_VD_GT_THR2_INTR_EN_SET (256u)
141 #define SDL_VTM_VD_LT_THR0_INTR_EN_CLR (512u)
142 #define SDL_VTM_VD_GT_THR1_INTR_EN_CLR (1024u)
143 #define SDL_VTM_VD_GT_THR2_INTR_EN_CLR (2048u)
144 #define SDL_VTM_VD_INTR_INVALID (SDL_VTM_VD_LT_THR0_INTR_RAW_SET | \
145  SDL_VTM_VD_LT_THR0_INTR_RAW_CLR)
146 
147 
154 typedef uint16_t SDL_VTM_vdEvtSel_set;
155 
156 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_0 (1u)
157 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_1 (2u)
158 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_2 (4u)
159 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_3 (8u)
160 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_4 (16u)
161 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_5 (32u)
162 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_6 (64u)
163 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_7 (128u)
164 
175 #define SDL_VTM_TSGLOBAL_CLK_SEL_VALID (1u)
176 #define SDL_VTM_TSGLOBAL_CLK_DIV_VALID (2u)
177 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_EN_VALID (4u)
178 #define SDL_VTM_TSGLOBAL_MAXT_OUTRG_ALERT_THR0_VALID (8u)
179 #define SDL_VTM_TSGLOBAL_MAXT_OUTRG_ALERT_THR_VALID (16u)
180 #define SDL_VTM_TSGLOBAL_SAMPLES_PER_CNT_VALID (32u)
181 
182 
191 typedef uint8_t SDL_VTM_tsGlobal_clkSel;
192 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_SEL_FIX_REF_CLK (1u)
193 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_SEL_FIX_REF2_CLK (2u)
194 
195 
196 
205 typedef uint8_t SDL_VTM_tsGlobal_clkDiv;
206 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_1 (0u)
207 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_2 (1u)
208 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_3 (2u)
209 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_4 (3u)
210 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_5 (4u)
211 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_6 (5u)
212 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_7 (6u)
213 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_8 (7u)
214 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_9 (8u)
215 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_10 (9u)
216 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_11 (10u)
217 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_12 (11u)
218 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_13 (12u)
219 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_14 (13u)
220 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_15 (14u)
221 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_16 (15u)
222 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_17 (16u)
223 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_18 (17u)
224 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_19 (18u)
225 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_20 (19u)
226 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_21 (20u)
227 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_22 (21u)
228 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_23 (22u)
229 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_24 (23u)
230 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_25 (24u)
231 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_26 (25u)
232 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_27 (26u)
233 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_28 (27u)
234 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_29 (28u)
235 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_30 (29u)
236 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_31 (30u)
237 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_32 (31u)
238 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_33 (32u)
239 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_34 (33u)
240 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_35 (34u)
241 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_36 (35u)
242 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_37 (36u)
243 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_38 (37u)
244 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_39 (38u)
245 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_40 (39u)
246 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_41 (40u)
247 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_42 (41u)
248 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_43 (42u)
249 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_44 (43u)
250 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_45 (44u)
251 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_46 (45u)
252 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_47 (46u)
253 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_48 (47u)
254 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_49 (48u)
255 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_50 (49u)
256 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_51 (50u)
257 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_52 (51u)
258 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_53 (52u)
259 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_54 (53u)
260 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_55 (54u)
261 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_56 (55u)
262 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_57 (56u)
263 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_58 (57u)
264 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_59 (58u)
265 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_60 (59u)
266 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_61 (60u)
267 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_62 (61u)
268 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_63 (62u)
269 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_64 (63u)
270 
271 
281 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_ENABLE (1u)
282 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_DISABLE (0u)
283 
284 
293 
294 
301 typedef uint8_t SDL_VTM_tsCtrl_valid_map;
302 #define SDL_VTM_TS_CTRL_MAXT_OUTG_ALERT_VALID (1u)
303 #define SDL_VTM_TS_CTRL_RESET_CTRL_VALID (2u)
304 #define SDL_VTM_TS_CTRL_SOC_VALID (4u)
305 #define SDL_VTM_TS_CTRL_MODE_VALID (8u)
306 
307 
317 #define SDL_VTM_TS_CTRL_MAXT_OUTRG_GEN_ALERT (1u)
318 #define SDL_VTM_TS_CTRL_MAXT_OUTRG_NO_ALERT (0u)
319 
320 
328 typedef uint8_t SDL_VTM_tsCtrl_resetCtrl;
329 #define SDL_VTM_TS_CTRL_SENSOR_RESET (0u)
330 #define SDL_VTM_TS_CTRL_SENSOR_NORM_OP (1u)
331 
332 
340 typedef uint8_t SDL_VTM_tsCtrl_mode;
341 #define SDL_VTM_TS_CTRL_SINGLESHOT_MODE (0u)
342 #define SDL_VTM_TS_CTRL_CONTINUOUS_MODE (1u)
343 
344 
345 
354 #define SDL_VTM_TS_CTRL_SINGLESHOT_ADC_CONV_IN_PROGRESS (1u)
355 #define SDL_VTM_TS_CTRL_SINGLESHOT_ADC_CONV_COMPLETE (0u)
356 
357 
365 typedef uint8_t SDL_VTM_thr_valid_map;
366 #define SDL_VTM_GT_TH1_VALID (1u)
367 #define SDL_VTM_GT_TH2_VALID (2u)
368 #define SDL_VTM_LT_TH0_VALID (4u)
369 
370 
378 typedef uint8_t SDL_VTM_Stat_read_ctrl;
379 #define SDL_VTM_TS_READ_VD_MAP_VAL (1U)
380 #define SDL_VTM_TS_READ_ALL_THRESHOLD_ALERTS (2U)
381 #define SDL_VTM_TS_READ_FIRST_TIME_EOC_BIT (4U)
382 #define SDL_VTM_TS_READ_DATA_VALID_BIT (8U)
383 #define SDL_VTM_TS_READ_DATA_OUT_VAL (16U)
384 
385 
394 typedef int16_t SDL_VTM_adc_code;
395 
396 
404 typedef uint8_t SDL_VTM_vdEvt_status;
405 
406 #define SDL_VTM_VD_EVT_STAT_THR_ALERTS_MASK (7u)
407 #define SDL_VTM_VD_EVT_STAT_LT_TH0_ALERT (4u)
408 #define SDL_VTM_VD_EVT_STAT_GT_TH1_ALERT (1u)
409 #define SDL_VTM_VD_EVT_STAT_GT_TH2_ALERT (2u)
410 
425 typedef struct {
456 
463 typedef struct {
483 
490 typedef struct {
495  /* 0: disable Th1, otherwise: enable Th1 */
496  bool gtTh1En;
499  /* 0: disable Th2, otherwise: enable Th2 */
500  bool gtTh2En;
503  /* 0: disable Th0, otherwise: enable Th0 */
504  bool ltTh0En;
506 
513 typedef struct {
526  uint8_t lt_th0_alert;
528  uint8_t gt_th1_alert;
530  uint8_t gt_th2_alert;
532  uint8_t soc_fc_update;
534  uint8_t data_valid;
538 
554 
565  SDL_VTM_adc_code c1,
566  SDL_VTM_adc_code c2);
567 
576 
595 int32_t SDL_VTM_vdSetOppVid (const SDL_VTM_cfg1Regs *p_cfg1,
597  SDL_VTM_vid_opp vid_opp,
598  uint8_t vid_opp_val);
599 
613 int32_t SDL_VTM_vdGetOppVid (const SDL_VTM_cfg1Regs *p_cfg1,
615  SDL_VTM_vid_opp vid_opp,
616  uint8_t *p_vid_opp_val);
617 
634 int32_t SDL_VTM_vdEvtSelSet (const SDL_VTM_cfg1Regs *p_cfg1,
636  SDL_VTM_vdEvtSel_set vd_temp_evts);
637 
650  const SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg);
651 
663  SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg);
664 
677 int32_t SDL_VTM_tsSetCtrl (const SDL_VTM_cfg2Regs *p_cfg2,
679  const SDL_VTM_Ctrlcfg *p_tsCtrl_cfg);
680 
693 int32_t SDL_VTM_tsGetCtrl (const SDL_VTM_cfg2Regs *p_cfg2,
695  SDL_VTM_Ctrlcfg *p_tsCtrl_cfg);
696 
712  const SDL_VTM_tsThrVal *p_thr_val);
713 
727  SDL_VTM_tsThrVal *p_thr_val);
728 
742  int32_t *p_milli_degree_temp_val);
743 
755 int32_t SDL_VTM_tsConvTempToAdc (int32_t milli_degree_temp_val,
757  SDL_VTM_adc_code *p_adc_code);
758 
783  int32_t high_temp_in_milli_degree_celcius,
784  int32_t low_temp_in_milli_degree_celcius);
785 
799 
800 
803 #ifdef __cplusplus
804 }
805 #endif /* extern "C" */
806 #endif /* end of SDL_IP_VTM_H definition */
SDL_VTM_tsThrVal::ltTh0En
bool ltTh0En
Definition: sdl_ip_vtm.h:504
SDL_VTM_tsThrVal::gtTh1
SDL_VTM_adc_code gtTh1
Definition: sdl_ip_vtm.h:494
SDL_VTM_tsCtrl_resetCtrl
uint8_t SDL_VTM_tsCtrl_resetCtrl
This enumerator define for VTM temperature sensor band gap reset control bits.
Definition: sdl_ip_vtm.h:328
SDL_VTM_tsSetCtrl
int32_t SDL_VTM_tsSetCtrl(const SDL_VTM_cfg2Regs *p_cfg2, SDL_VTM_InstTs instance, const SDL_VTM_Ctrlcfg *p_tsCtrl_cfg)
VTM Temperature Sensor Control.
SDL_VTM_Stat_val::gt_th1_alert
uint8_t gt_th1_alert
Definition: sdl_ip_vtm.h:528
SDL_VTM_cfg1Regs
Definition: sdlr_vtm.h:78
SDL_VTM_tsGlobal_cfg::maxt_outrg_alert_thr0
SDL_VTM_adc_code maxt_outrg_alert_thr0
Definition: sdl_ip_vtm.h:446
SDL_VTM_thr_valid_map
uint8_t SDL_VTM_thr_valid_map
This enumerator define for VTM Temperature Sensor thresholds valid bit map.
Definition: sdl_ip_vtm.h:365
SDL_VTM_tsGlobal_cfg
VTM Global Configuration Registers.
Definition: sdl_ip_vtm.h:425
SDL_VTM_InstVd
SDL_VTM_InstVd
Definition: sdl_soc_vtm.h:109
SDL_VTM_getSensorVDCount
void SDL_VTM_getSensorVDCount(const SDL_VTM_cfg1Regs *p_cfg1)
get sensor and VD count
SDL_VTM_tsGlobal_cfg::validMap
SDL_VTM_tsGlobal_ctrl_valid_map validMap
Definition: sdl_ip_vtm.h:427
SDL_VTM_Ctrlcfg::tsReset
SDL_VTM_tsCtrl_resetCtrl tsReset
Definition: sdl_ip_vtm.h:472
SDL_VTM_tsConvTempToAdc
int32_t SDL_VTM_tsConvTempToAdc(int32_t milli_degree_temp_val, SDL_VTM_InstTs instance, SDL_VTM_adc_code *p_adc_code)
VTM Temperature to ADC code conversion.
SDL_VTM_tsThrVal::ltTh0
SDL_VTM_adc_code ltTh0
Definition: sdl_ip_vtm.h:502
SDL_VTM_vdGetOppVid
int32_t SDL_VTM_vdGetOppVid(const SDL_VTM_cfg1Regs *p_cfg1, SDL_VTM_InstVd instance, SDL_VTM_vid_opp vid_opp, uint8_t *p_vid_opp_val)
get VTM VID OPP Code from VID OPP register
instance
uint8_t instance
Definition: tisci_dkek.h:1
SDL_VTM_Stat_val::lt_th0_alert
uint8_t lt_th0_alert
Definition: sdl_ip_vtm.h:526
SDL_VTM_Ctrlcfg::mode
SDL_VTM_tsCtrl_mode mode
Definition: sdl_ip_vtm.h:481
SDL_VTM_tsThrVal::gtTh1En
bool gtTh1En
Definition: sdl_ip_vtm.h:496
SDL_VTM_tsGlobal_cfg::maxt_outrg_alert_thr
SDL_VTM_adc_code maxt_outrg_alert_thr
Definition: sdl_ip_vtm.h:451
SDL_VTM_InstTs
SDL_VTM_InstTs
Definition: sdl_soc_vtm.h:77
SDL_VTM_getBestValue
SDL_VTM_adc_code SDL_VTM_getBestValue(SDL_VTM_adc_code c0, SDL_VTM_adc_code c1, SDL_VTM_adc_code c2)
select best ADC code
SDL_VTM_tsThrVal::gtTh2
SDL_VTM_adc_code gtTh2
Definition: sdl_ip_vtm.h:498
SDL_VTM_tsGlobal_ctrl_valid_map
uint32_t SDL_VTM_tsGlobal_ctrl_valid_map
This enumerator defines for VTM Temperature sensor id control update valid maps. This controls the se...
Definition: sdl_ip_vtm.h:174
SDL_VTM_vdEvtSel_set
uint16_t SDL_VTM_vdEvtSel_set
This enumerator define for VTM Voltage domain Event selection set.
Definition: sdl_ip_vtm.h:154
SDL_VTM_tsCtrl_singleshot_conv_stat
uint8_t SDL_VTM_tsCtrl_singleshot_conv_stat
This enumerator define for VTM temperature sensor band gap single shot mode start of conversion trigg...
Definition: sdl_ip_vtm.h:353
SDL_VTM_configTsCtrl
uint8_t SDL_VTM_configTsCtrl
This enumerator define for VTM TS configuration valid map.
Definition: sdl_ip_vtm.h:79
SDL_VTM_Stat_read_ctrl
uint8_t SDL_VTM_Stat_read_ctrl
This enumerator define for VTM temperature sensor STAT read valid map.
Definition: sdl_ip_vtm.h:378
SDL_VTM_intrCtrl
uint16_t SDL_VTM_intrCtrl
This enumerator define for VTM Voltage domain threshold interrupt control.
Definition: sdl_ip_vtm.h:131
SDL_VTM_tsGetGlobalCfg
int32_t SDL_VTM_tsGetGlobalCfg(const SDL_VTM_cfg2Regs *p_cfg2, SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg)
VTM Temperature Sensor Get Global configuration values.
SDL_VTM_Stat_val::data_valid
uint8_t data_valid
Definition: sdl_ip_vtm.h:534
SDL_VTM_tsCtrl_max_outrg_alert
uint8_t SDL_VTM_tsCtrl_max_outrg_alert
This enumerator define for VTM temperature sensor band gap maximum temperature out of range alert con...
Definition: sdl_ip_vtm.h:316
SDL_VTM_tsConvADCToTemp
int32_t SDL_VTM_tsConvADCToTemp(SDL_VTM_adc_code adc_code, SDL_VTM_InstTs instance, int32_t *p_milli_degree_temp_val)
VTM Temperature ADC code to Temperature conversion.
SDL_VTM_ts_stat_vd_map
uint8_t SDL_VTM_ts_stat_vd_map
This enumerator defines the core voltage domain mapping of VTM VD.
Definition: sdl_ip_vtm.h:112
SDL_VTM_tsGetThresholds
int32_t SDL_VTM_tsGetThresholds(const SDL_VTM_cfg1Regs *p_cfg1, SDL_VTM_InstTs instance, SDL_VTM_tsThrVal *p_thr_val)
VTM Temperature Sensor get threshold values and threshold enable/disable status.
SDL_VTM_getAdcCode
SDL_VTM_adc_code SDL_VTM_getAdcCode(const SDL_VTM_cfg1Regs_TMPSENS *p_sensor)
read Temperature sensor ADC code
sdlr_vtm.h
SDL_VTM_tsGlobal_clkDiv
uint8_t SDL_VTM_tsGlobal_clkDiv
This enumerator define for VTM Temperature sensor global control Clock divide options.
Definition: sdl_ip_vtm.h:205
SDL_VTM_tsGetCtrl
int32_t SDL_VTM_tsGetCtrl(const SDL_VTM_cfg2Regs *p_cfg2, SDL_VTM_InstTs instance, SDL_VTM_Ctrlcfg *p_tsCtrl_cfg)
Read VTM Temperature Sensor Control.
SDL_VTM_tsCtrl_valid_map
uint8_t SDL_VTM_tsCtrl_valid_map
This enumerator define for VTM Temperature sensor control valid map.
Definition: sdl_ip_vtm.h:301
SDL_VTM_tsSetMaxTOutRgAlertThrDisable
int32_t SDL_VTM_tsSetMaxTOutRgAlertThrDisable(const SDL_VTM_cfg2Regs *p_cfg2, SDL_VTM_InstTs instance)
VTM Temperature Sensor Maximum Temperature Out of Range Alert threshold.
SDL_VTM_vdEvt_status
uint8_t SDL_VTM_vdEvt_status
This enumerator define for VTM Voltage domain event status.
Definition: sdl_ip_vtm.h:404
SDL_VTM_cfg2Regs
Definition: sdlr_vtm.h:831
SDL_VTM_tsGlobal_cfg::clkDiv
SDL_VTM_tsGlobal_clkDiv clkDiv
Definition: sdl_ip_vtm.h:437
SDL_VTM_tsGlobal_cfg::samplesPerCnt
SDL_VTM_tsGlobal_samples_per_count samplesPerCnt
Definition: sdl_ip_vtm.h:454
SDL_VTM_tsSetThresholds
int32_t SDL_VTM_tsSetThresholds(const SDL_VTM_cfg1Regs *p_cfg1, SDL_VTM_InstTs instance, const SDL_VTM_tsThrVal *p_thr_val)
VTM Temperature sensor set, clear threshold values and enable, disable threshold events.
SDL_VTM_Stat_val::soc_fc_update
uint8_t soc_fc_update
Definition: sdl_ip_vtm.h:532
SDL_VTM_Ctrlcfg::adc_stat
SDL_VTM_tsCtrl_singleshot_conv_stat adc_stat
Definition: sdl_ip_vtm.h:477
SDL_VTM_vdSetOppVid
int32_t SDL_VTM_vdSetOppVid(const SDL_VTM_cfg1Regs *p_cfg1, SDL_VTM_InstVd instance, SDL_VTM_vid_opp vid_opp, uint8_t vid_opp_val)
set the VID OPP Code for VID OPP register
SDL_VTM_tsGlobal_cfg::clkSel
SDL_VTM_tsGlobal_clkSel clkSel
Definition: sdl_ip_vtm.h:431
SDL_VTM_Ctrlcfg
VTM temperature sensor band gap control.
Definition: sdl_ip_vtm.h:463
SDL_VTM_tsSetMaxTOutRgAlertThr
int32_t SDL_VTM_tsSetMaxTOutRgAlertThr(const SDL_VTM_cfg2Regs *p_cfg2, SDL_VTM_InstTs instance, int32_t high_temp_in_milli_degree_celcius, int32_t low_temp_in_milli_degree_celcius)
VTM Temperature Sensor Maximum Temperature Out of Range Alert threshold.
SDL_VTM_Ctrlcfg::valid_map
SDL_VTM_tsCtrl_valid_map valid_map
Definition: sdl_ip_vtm.h:465
SDL_VTM_tsThrVal::thrValidMap
SDL_VTM_thr_valid_map thrValidMap
Definition: sdl_ip_vtm.h:492
SDL_VTM_tsThrVal::gtTh2En
bool gtTh2En
Definition: sdl_ip_vtm.h:500
SDL_VTM_tsGlobal_clkSel
uint8_t SDL_VTM_tsGlobal_clkSel
This enumerator define for VTM Temperature sensor global control Clock select options.
Definition: sdl_ip_vtm.h:191
SDL_VTM_tsCtrl_mode
uint8_t SDL_VTM_tsCtrl_mode
This enumerator define for VTM temperature sensor mode control bits.
Definition: sdl_ip_vtm.h:340
SDL_VTM_adc_code
int16_t SDL_VTM_adc_code
This enumerator define for VTM temperature sensor ADC code This is the data_out value of the temperat...
Definition: sdl_ip_vtm.h:394
SDL_VTM_Stat_val::maxt_outrg_alert
uint8_t maxt_outrg_alert
Definition: sdl_ip_vtm.h:524
SDL_VTM_tsThrVal
VTM temperature sensor threshold values.
Definition: sdl_ip_vtm.h:490
SDL_VTM_tsGlobal_samples_per_count
uint16_t SDL_VTM_tsGlobal_samples_per_count
This enumerator define for VTM Temperature sensor global control samples per count.
Definition: sdl_ip_vtm.h:292
SDL_VTM_cfg1Regs_TMPSENS
Definition: sdlr_vtm.h:68
SDL_VTM_tsGlobal_any_maxt_outrg_alert_en
uint8_t SDL_VTM_tsGlobal_any_maxt_outrg_alert_en
This enumerator define for VTM Temperature sensor global control any max temperature alert enable con...
Definition: sdl_ip_vtm.h:280
SDL_VTM_Ctrlcfg::maxt_outrg_alert_en
SDL_VTM_tsCtrl_max_outrg_alert maxt_outrg_alert_en
Definition: sdl_ip_vtm.h:469
SDL_VTM_Stat_val
VTM temperature sensor Stat values.
Definition: sdl_ip_vtm.h:513
SDL_VTM_tsSetGlobalCfg
int32_t SDL_VTM_tsSetGlobalCfg(const SDL_VTM_cfg2Regs *p_cfg2, const SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg)
VTM Temperature Sensor Set Global configuration values.
SDL_VTM_vdEvtSelSet
int32_t SDL_VTM_vdEvtSelSet(const SDL_VTM_cfg1Regs *p_cfg1, SDL_VTM_InstVd instance, SDL_VTM_vdEvtSel_set vd_temp_evts)
set Voltage domain a event select and control set register. In this API, select which of the event co...
SDL_VTM_vid_opp
uint8_t SDL_VTM_vid_opp
This enumerator defines the possible VID Codes to set various voltage domain supply voltages.
Definition: sdl_ip_vtm.h:94
SDL_VTM_Stat_val::data_out
SDL_VTM_adc_code data_out
Definition: sdl_ip_vtm.h:536
SDL_VTM_Stat_val::vd_map
SDL_VTM_ts_stat_vd_map vd_map
Definition: sdl_ip_vtm.h:519
SDL_VTM_Stat_val::gt_th2_alert
uint8_t gt_th2_alert
Definition: sdl_ip_vtm.h:530
SDL_VTM_tsGlobal_cfg::any_maxt_outrg_alert_en
SDL_VTM_tsGlobal_any_maxt_outrg_alert_en any_maxt_outrg_alert_en
Definition: sdl_ip_vtm.h:441
SDL_VTM_configVdCtrl
uint8_t SDL_VTM_configVdCtrl
This enumerator define forVTM VD configuration valid map.
Definition: sdl_ip_vtm.h:67