SDL API Guide for J7200
sdl_ip_vtm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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  */
47 #ifndef SDL_IP_VTM_H
48 #define SDL_IP_VTM_H
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 #include <stdint.h>
55 #include <stdbool.h>
56 #include <src/ip/sdlr_vtm.h>
57 #include <src/ip/sdl_ip_vtm.h>
88 typedef uint8_t SDL_VTM_configVdCtrl;
89 #define SDL_VTM_VD_CONFIG_CTRL_VID_OPP (1U)
90 #define SDL_VTM_VD_CONFIG_CTRL_EVT_SEL (2U)
91 #define SDL_VTM_VD_CONFIG_CTRL_GLB_CFG (4U)
92 
93 /* @} */
94 
106 typedef uint8_t SDL_VTM_configTsCtrl;
107 #define SDL_VTM_VD_CONFIG_CTRL_SET_CTL (1U)
108 #define SDL_VTM_VD_CONFIG_CTRL_OUTRNG_ALRT (2U)
109 #define SDL_VTM_VD_CONFIG_CTRL_SET_THR (4U)
110 
111 /* @} */
112 
124 typedef uint8_t SDL_VTM_vid_opp;
126 #define SDL_VTM_VID_OPP_MAX_NUM ((uint8_t) 4U)
127 
128 #define SDL_VTM_VID_OPP_3_CODE ((uint8_t) 3U)
129 
130 #define SDL_VTM_VID_OPP_2_CODE ((uint8_t) 2U)
131 
132 #define SDL_VTM_VID_OPP_1_CODE ((uint8_t) 1U)
133 
134 #define SDL_VTM_VID_OPP_0_CODE ((uint8_t) 0U)
135 
136 
137 /* @} */
138 
148 typedef uint8_t SDL_VTM_ts_stat_vd_map;
150 #define SDL_VTM_TS_STAT_VD_MAP_RTC ((uint32) 0U)
151 
152 #define SDL_VTM_TS_STAT_VD_MAP_WKUP ((uint32) 1U)
153 
154 #define SDL_VTM_TS_STAT_VD_MAP_MCU ((uint32) 2U)
155 
156 #define SDL_VTM_TS_STAT_VD_MAP_CORE ((uint32) 3U)
157 
158 #define SDL_VTM_TSTAT_VD_MAP_NOT_IMPLEMENTED ((uint32) 15U)
159 
160 /* @} */
161 
172 typedef uint16_t SDL_VTM_intrCtrl;
173 #define SDL_VTM_VD_LT_THR0_INTR_RAW_SET (1u)
174 #define SDL_VTM_VD_GT_THR1_INTR_RAW_SET (2u)
175 #define SDL_VTM_VD_GT_THR2_INTR_RAW_SET (4u)
176 #define SDL_VTM_VD_LT_THR0_INTR_RAW_CLR (8u)
177 #define SDL_VTM_VD_GT_THR1_INTR_RAW_CLR (16u)
178 #define SDL_VTM_VD_GT_THR2_INTR_RAW_CLR (32u)
179 #define SDL_VTM_VD_LT_THR0_INTR_EN_SET (64u)
180 #define SDL_VTM_VD_GT_THR1_INTR_EN_SET (128u)
181 #define SDL_VTM_VD_GT_THR2_INTR_EN_SET (256u)
182 #define SDL_VTM_VD_LT_THR0_INTR_EN_CLR (512u)
183 #define SDL_VTM_VD_GT_THR1_INTR_EN_CLR (1024u)
184 #define SDL_VTM_VD_GT_THR2_INTR_EN_CLR (2048u)
185 #define SDL_VTM_VD_INTR_INVALID (SDL_VTM_VD_LT_THR0_INTR_RAW_SET | \
186  SDL_VTM_VD_LT_THR0_INTR_RAW_CLR)
187 
188 
199 typedef uint16_t SDL_VTM_vdEvtSel_set;
200 
201 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_0 (1u)
202 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_1 (2u)
203 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_2 (4u)
204 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_3 (8u)
205 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_4 (16u)
206 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_5 (32u)
207 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_6 (64u)
208 #define SDL_VTM_VD_EVT_SELECT_TEMP_SENSOR_7 (128u)
209 /* @} */
210 
224 #define SDL_VTM_TSGLOBAL_CLK_SEL_VALID (1u)
225 #define SDL_VTM_TSGLOBAL_CLK_DIV_VALID (2u)
226 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_EN_VALID (4u)
227 #define SDL_VTM_TSGLOBAL_MAXT_OUTRG_ALERT_THR0_VALID (8u)
228 #define SDL_VTM_TSGLOBAL_MAXT_OUTRG_ALERT_THR_VALID (16u)
229 #define SDL_VTM_TSGLOBAL_SAMPLES_PER_CNT_VALID (32u)
230 
231 /* @} */
232 
244 typedef uint8_t SDL_VTM_tsGlobal_clkSel;
245 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_SEL_FIX_REF_CLK (1u)
246 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_SEL_FIX_REF2_CLK (2u)
247 
248 /* @} */
249 
250 
262 typedef uint8_t SDL_VTM_tsGlobal_clkDiv;
263 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_1 (0u)
264 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_2 (1u)
265 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_3 (2u)
266 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_4 (3u)
267 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_5 (4u)
268 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_6 (5u)
269 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_7 (6u)
270 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_8 (7u)
271 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_9 (8u)
272 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_10 (9u)
273 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_11 (10u)
274 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_12 (11u)
275 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_13 (12u)
276 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_14 (13u)
277 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_15 (14u)
278 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_16 (15u)
279 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_17 (16u)
280 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_18 (17u)
281 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_19 (18u)
282 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_20 (19u)
283 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_21 (20u)
284 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_22 (21u)
285 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_23 (22u)
286 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_24 (23u)
287 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_25 (24u)
288 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_26 (25u)
289 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_27 (26u)
290 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_28 (27u)
291 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_29 (28u)
292 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_30 (29u)
293 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_31 (30u)
294 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_32 (31u)
295 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_33 (32u)
296 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_34 (33u)
297 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_35 (34u)
298 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_36 (35u)
299 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_37 (36u)
300 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_38 (37u)
301 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_39 (38u)
302 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_40 (39u)
303 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_41 (40u)
304 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_42 (41u)
305 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_43 (42u)
306 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_44 (43u)
307 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_45 (44u)
308 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_46 (45u)
309 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_47 (46u)
310 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_48 (47u)
311 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_49 (48u)
312 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_50 (49u)
313 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_51 (50u)
314 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_52 (51u)
315 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_53 (52u)
316 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_54 (53u)
317 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_55 (54u)
318 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_56 (55u)
319 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_57 (56u)
320 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_58 (57u)
321 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_59 (58u)
322 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_60 (59u)
323 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_61 (60u)
324 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_62 (61u)
325 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_63 (62u)
326 #define SDL_VTM_TSGLOBAL_CLK_CTRL_CLK_DIV_BY_64 (63u)
327 
328 /* @} */
329 
343 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_ENABLE (1u)
344 #define SDL_VTM_TSGLOBAL_ANY_MAXT_OUTRG_ALERT_DISABLE (0u)
345 
346 /* @} */
347 
360 
361 /* @} */
362 
372 typedef uint8_t SDL_VTM_tsCtrl_valid_map;
373 #define SDL_VTM_TS_CTRL_MAXT_OUTG_ALERT_VALID (1u)
374 #define SDL_VTM_TS_CTRL_RESET_CTRL_VALID (2u)
375 #define SDL_VTM_TS_CTRL_SOC_VALID (4u)
376 #define SDL_VTM_TS_CTRL_MODE_VALID (8u)
377 
378 /* @} */
379 
393 #define SDL_VTM_TS_CTRL_MAXT_OUTRG_GEN_ALERT (1u)
394 #define SDL_VTM_TS_CTRL_MAXT_OUTRG_NO_ALERT (0u)
395 
396 /* @} */
397 
409 typedef uint8_t SDL_VTM_tsCtrl_resetCtrl;
410 #define SDL_VTM_TS_CTRL_SENSOR_RESET (0u)
411 #define SDL_VTM_TS_CTRL_SENSOR_NORM_OP (1u)
412 /* @} */
413 
425 typedef uint8_t SDL_VTM_tsCtrl_mode;
426 #define SDL_VTM_TS_CTRL_SINGLESHOT_MODE (0u)
427 #define SDL_VTM_TS_CTRL_CONTINUOUS_MODE (1u)
428 
429 /* @} */
430 
431 
444 #define SDL_VTM_TS_CTRL_SINGLESHOT_ADC_CONV_IN_PROGRESS (1u)
445 #define SDL_VTM_TS_CTRL_SINGLESHOT_ADC_CONV_COMPLETE (0u)
446 
447 /* @} */
448 
460 typedef uint8_t SDL_VTM_thr_valid_map;
461 #define SDL_VTM_GT_TH1_VALID (1u)
462 #define SDL_VTM_GT_TH2_VALID (2u)
463 #define SDL_VTM_LT_TH0_VALID (4u)
464 
465 /* @} */
466 
478 typedef uint8_t SDL_VTM_Stat_read_ctrl;
479 #define SDL_VTM_TS_READ_VD_MAP_VAL (1U)
480 #define SDL_VTM_TS_READ_ALL_THRESHOLD_ALERTS (2U)
481 #define SDL_VTM_TS_READ_FIRST_TIME_EOC_BIT (4U)
482 #define SDL_VTM_TS_READ_DATA_VALID_BIT (8U)
483 #define SDL_VTM_TS_READ_DATA_OUT_VAL (16U)
484 
485 /* @} */
486 
499 typedef int16_t SDL_VTM_adc_code;
500 
501 /* @} */
502 
513 typedef uint8_t SDL_VTM_vdEvt_status;
514 
515 #define SDL_VTM_VD_EVT_STAT_THR_ALERTS_MASK (7u)
516 #define SDL_VTM_VD_EVT_STAT_LT_TH0_ALERT (4u)
517 #define SDL_VTM_VD_EVT_STAT_GT_TH1_ALERT (1u)
518 #define SDL_VTM_VD_EVT_STAT_GT_TH2_ALERT (2u)
519 /* @} */
520 
521 /* @} */
522 
523 
535 typedef struct {
566 
573 typedef struct {
593 
600 typedef struct {
605  /* 0: disable Th1, otherwise: enable Th1 */
606  bool gtTh1En;
609  /* 0: disable Th2, otherwise: enable Th2 */
610  bool gtTh2En;
613  /* 0: disable Th0, otherwise: enable Th0 */
614  bool ltTh0En;
616 
623 typedef struct {
636  uint8_t lt_th0_alert;
638  uint8_t gt_th1_alert;
640  uint8_t gt_th2_alert;
642  uint8_t soc_fc_update;
644  uint8_t data_valid;
648 
649 /* @} */
650 
663 void SDL_VTM_getSensorVDCount(const SDL_VTM_cfg1Regs *p_cfg1);
664 
675  SDL_VTM_adc_code c1,
676  SDL_VTM_adc_code c2);
677 
685 SDL_VTM_adc_code SDL_VTM_getAdcCode(const SDL_VTM_cfg1Regs_TMPSENS *p_sensor);
686 
705 int32_t SDL_VTM_vdSetOppVid (const SDL_VTM_cfg1Regs *p_cfg1,
706  SDL_VTM_InstVd instance,
707  SDL_VTM_vid_opp vid_opp,
708  uint8_t vid_opp_val);
709 
723 int32_t SDL_VTM_vdGetOppVid (const SDL_VTM_cfg1Regs *p_cfg1,
724  SDL_VTM_InstVd instance,
725  SDL_VTM_vid_opp vid_opp,
726  uint8_t *p_vid_opp_val);
727 
744 int32_t SDL_VTM_vdEvtSelSet (const SDL_VTM_cfg1Regs *p_cfg1,
745  SDL_VTM_InstVd instance,
746  SDL_VTM_vdEvtSel_set vd_temp_evts);
747 
759 int32_t SDL_VTM_tsSetGlobalCfg (const SDL_VTM_cfg2Regs *p_cfg2,
760  const SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg);
761 
772 int32_t SDL_VTM_tsGetGlobalCfg (const SDL_VTM_cfg2Regs *p_cfg2,
773  SDL_VTM_tsGlobal_cfg *p_tsGlobal_cfg);
774 
787 int32_t SDL_VTM_tsSetCtrl (const SDL_VTM_cfg2Regs *p_cfg2,
788  SDL_VTM_InstTs instance,
789  const SDL_VTM_Ctrlcfg *p_tsCtrl_cfg);
790 
803 int32_t SDL_VTM_tsGetCtrl (const SDL_VTM_cfg2Regs *p_cfg2,
804  SDL_VTM_InstTs instance,
805  SDL_VTM_Ctrlcfg *p_tsCtrl_cfg);
806 
820 int32_t SDL_VTM_tsSetThresholds (const SDL_VTM_cfg1Regs *p_cfg1,
821  SDL_VTM_InstTs instance,
822  const SDL_VTM_tsThrVal *p_thr_val);
823 
835 int32_t SDL_VTM_tsGetThresholds (const SDL_VTM_cfg1Regs *p_cfg1,
836  SDL_VTM_InstTs instance,
837  SDL_VTM_tsThrVal *p_thr_val);
838 
850 int32_t SDL_VTM_tsConvADCToTemp (SDL_VTM_adc_code adc_code,
851  SDL_VTM_InstTs instance,
852  int32_t *p_milli_degree_temp_val);
853 
865 int32_t SDL_VTM_tsConvTempToAdc (int32_t milli_degree_temp_val,
866  SDL_VTM_InstTs instance,
867  SDL_VTM_adc_code *p_adc_code);
868 
891 int32_t SDL_VTM_tsSetMaxTOutRgAlertThr(const SDL_VTM_cfg2Regs *p_cfg2,
892  SDL_VTM_InstTs instance,
893  int32_t high_temp_in_milli_degree_celcius,
894  int32_t low_temp_in_milli_degree_celcius);
895 
896 /* @} */
897 
898 /* @} */
899 
900 #ifdef __cplusplus
901 }
902 #endif /* extern "C" */
903 
904 #endif /* end of SDL_IP_VTM_H definition */
uint8_t SDL_VTM_configVdCtrl
Definition: sdl_ip_vtm.h:88
SDL_VTM_tsGlobal_clkDiv clkDiv
Definition: sdl_ip_vtm.h:547
SDL_VTM_tsCtrl_valid_map valid_map
Definition: sdl_ip_vtm.h:575
int16_t SDL_VTM_adc_code
Definition: sdl_ip_vtm.h:499
uint8_t data_valid
Definition: sdl_ip_vtm.h:644
SDL_VTM_InstVd
Definition: sdl_soc_vtm.h:109
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_adc_code maxt_outrg_alert_thr
Definition: sdl_ip_vtm.h:561
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
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
uint8_t gt_th2_alert
Definition: sdl_ip_vtm.h:640
uint8_t SDL_VTM_tsCtrl_valid_map
Definition: sdl_ip_vtm.h:372
SDL_VTM_adc_code data_out
Definition: sdl_ip_vtm.h:646
uint8_t SDL_VTM_tsGlobal_clkSel
Definition: sdl_ip_vtm.h:244
uint8_t SDL_VTM_tsGlobal_any_maxt_outrg_alert_en
Definition: sdl_ip_vtm.h:342
uint8_t lt_th0_alert
Definition: sdl_ip_vtm.h:636
uint16_t SDL_VTM_tsGlobal_samples_per_count
Definition: sdl_ip_vtm.h:359
uint8_t SDL_VTM_tsCtrl_singleshot_conv_stat
Definition: sdl_ip_vtm.h:443
SDL_VTM_tsCtrl_max_outrg_alert maxt_outrg_alert_en
Definition: sdl_ip_vtm.h:579
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_tsGlobal_clkSel clkSel
Definition: sdl_ip_vtm.h:541
SDL_VTM_tsCtrl_singleshot_conv_stat adc_stat
Definition: sdl_ip_vtm.h:587
uint8_t SDL_VTM_tsGlobal_clkDiv
Definition: sdl_ip_vtm.h:262
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...
bool gtTh2En
Definition: sdl_ip_vtm.h:610
uint8_t SDL_VTM_tsCtrl_mode
Definition: sdl_ip_vtm.h:425
SDL_VTM_tsCtrl_mode mode
Definition: sdl_ip_vtm.h:591
VTM temperature sensor Stat values.
Definition: sdl_ip_vtm.h:623
uint8_t maxt_outrg_alert
Definition: sdl_ip_vtm.h:634
uint8_t SDL_VTM_tsCtrl_resetCtrl
Definition: sdl_ip_vtm.h:409
SDL_VTM_adc_code gtTh2
Definition: sdl_ip_vtm.h:608
uint8_t SDL_VTM_Stat_read_ctrl
Definition: sdl_ip_vtm.h:478
bool ltTh0En
Definition: sdl_ip_vtm.h:614
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_adc_code ltTh0
Definition: sdl_ip_vtm.h:612
uint8_t SDL_VTM_thr_valid_map
Definition: sdl_ip_vtm.h:460
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_tsGlobal_samples_per_count samplesPerCnt
Definition: sdl_ip_vtm.h:564
SDL_VTM_ts_stat_vd_map vd_map
Definition: sdl_ip_vtm.h:629
uint32_t SDL_VTM_tsGlobal_ctrl_valid_map
Definition: sdl_ip_vtm.h:223
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_adc_code SDL_VTM_getAdcCode(const SDL_VTM_cfg1Regs_TMPSENS *p_sensor)
read Temperature sensor ADC code
SDL_VTM_tsCtrl_resetCtrl tsReset
Definition: sdl_ip_vtm.h:582
uint8_t gt_th1_alert
Definition: sdl_ip_vtm.h:638
VTM temperature sensor band gap control.
Definition: sdl_ip_vtm.h:573
VTM temperature sensor threshold values.
Definition: sdl_ip_vtm.h:600
uint16_t SDL_VTM_intrCtrl
Definition: sdl_ip_vtm.h:172
bool gtTh1En
Definition: sdl_ip_vtm.h:606
void SDL_VTM_getSensorVDCount(const SDL_VTM_cfg1Regs *p_cfg1)
get sensor and VD count
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.
uint16_t SDL_VTM_vdEvtSel_set
Definition: sdl_ip_vtm.h:199
uint8_t soc_fc_update
Definition: sdl_ip_vtm.h:642
uint8_t SDL_VTM_tsCtrl_max_outrg_alert
Definition: sdl_ip_vtm.h:392
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_tsGlobal_ctrl_valid_map validMap
Definition: sdl_ip_vtm.h:537
SDL_VTM_InstTs
Definition: sdl_soc_vtm.h:77
SDL_VTM_thr_valid_map thrValidMap
Definition: sdl_ip_vtm.h:602
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.
uint8_t SDL_VTM_vdEvt_status
Definition: sdl_ip_vtm.h:513
uint8_t SDL_VTM_vid_opp
Definition: sdl_ip_vtm.h:124
VTM Global Configuration Registers.
Definition: sdl_ip_vtm.h:535
SDL_VTM_adc_code maxt_outrg_alert_thr0
Definition: sdl_ip_vtm.h:556
uint8_t SDL_VTM_ts_stat_vd_map
Definition: sdl_ip_vtm.h:148
SDL_VTM_tsGlobal_any_maxt_outrg_alert_en any_maxt_outrg_alert_en
Definition: sdl_ip_vtm.h:551
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_adc_code gtTh1
Definition: sdl_ip_vtm.h:604
uint8_t SDL_VTM_configTsCtrl
Definition: sdl_ip_vtm.h:106
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.