 |
AM261x MCU+ SDK
10.02.00
|
|
Go to the documentation of this file.
44 #if defined (SOC_AM261X)
46 #elif defined (SOC_AM263PX)
47 #include <sdl/vtm/v1/soc/am263px/sdl_soc_vtm.h>
72 #define SDL_VTM_VD_CONFIG_CTRL_VID_OPP (1U)
73 #define SDL_VTM_VD_CONFIG_CTRL_EVT_SEL (2U)
74 #define SDL_VTM_VD_CONFIG_CTRL_GLB_CFG (4U)
84 #define SDL_VTM_VD_CONFIG_CTRL_SET_CTL (1U)
85 #define SDL_VTM_VD_CONFIG_CTRL_OUTRNG_ALRT (2U)
86 #define SDL_VTM_VD_CONFIG_CTRL_SET_THR (4U)
97 #define SDL_VTM_BGR_OFF 0x1U
98 #define SDL_VTM_BGR_ON 0x0U
100 #define SDL_VTM_AIP_OFF 0x1U
101 #define SDL_VTM_AIP_ON 0x0U
103 #define SDL_VTM_TMPSOFF_OFF 0x1U
104 #define SDL_VTM_TMPSOFF_ON 0x0U
106 #define SDL_VTM_MUX_HIZ 0x1U
107 #define SDL_VTM_NORMAL_HIZ 0x0U
109 #define SDL_VTM_SENSOR_SEL0 (1U << 0U)
110 #define SDL_VTM_SENSOR_SEL1 (1U << 1U)
111 #define SDL_VTM_SENSOR_SEL2 (1U << 2U)
112 #define SDL_VTM_SENSOR_SEL3 (1U << 3U)
114 #define SDL_VTM_TSENSE_EN 0x1U
115 #define SDL_VTM_TSENSE_DIS 0x0U
117 #define SDL_VTM_TSENSE0_LOW_TH_FLAG (1U << 0U)
118 #define SDL_VTM_TSENSE0_HOT_FLAG (1U << 2U)
119 #define SDL_VTM_TSENSE0_COLD_FLAG (1U << 1U)
120 #define SDL_VTM_TSENSE1_LOW_TH_FLAG (1U << 4U)
121 #define SDL_VTM_TSENSE1_HOT_FLAG (1U << 6U)
122 #define SDL_VTM_TSENSE1_COLD_FLAG (1U << 5U)
124 #define SDL_VTM_OVERRIDE_PATTERN 0x7U
126 #define SDL_VTM_MASK_LOW_TH (1U)
127 #define SDL_VTM_MASK_COLD (1U)
128 #define SDL_VTM_MASK_HOT (1U)
131 #define SDL_VTM_FREEZE_FIFO 1U
132 #define SDL_VTM_CLR_FIFO 1U
133 #define SDL_VTM_CLR_ACCU 1U
135 #define SDL_VTM_BUF_NUM0 0U
136 #define SDL_VTM_BUF_NUM1 1U
137 #define SDL_VTM_BUF_NUM2 2U
138 #define SDL_VTM_BUF_NUM3 3U
140 #define SDL_VTM_TSENSE_OFF 0U
141 #define SDL_VTM_TSENSE_ON 1U
143 #define SDL_VTM_MAXDELAY 0x2FU
208 uint32_t *pTsCtrlCfg);
222 int32_t *pMilliDegreeTempVal);
uint8_t s1ColdEvent
Definition: sdl_ip_vtm.h:166
SDL_VTM_InstTs
Definition: sdl_soc_vtm.h:54
uint8_t SDL_VTM_configTsCtrl
This enumerator define for VTM TS configuration valid map.
Definition: sdl_ip_vtm.h:83
int32_t SDL_VTM_tsGetCtrl(SDL_VTM_InstTs instance, uint32_t *pTsCtrlCfg)
Read VTM Temperature Sensor Control.
uint8_t s0LowThresholdEvent
Definition: sdl_ip_vtm.h:174
int32_t SDL_VTM_tsConvTempToAdc(int32_t milliDegreeTempVal, SDL_VTM_adc_code *pAdcCode)
VTM Temperature to ADC code conversion.
uint8_t s1HotEvent
Definition: sdl_ip_vtm.h:164
uint8_t s0HotEvent
Definition: sdl_ip_vtm.h:170
int16_t SDL_VTM_adc_code
This typedef for VTM temperature sensor ADC code This is the data_out value of the temperature sensor...
Definition: sdl_ip_vtm.h:153
uint8_t s0ColdEvent
Definition: sdl_ip_vtm.h:172
uint8_t s1LowThresholdEvent
Definition: sdl_ip_vtm.h:168
int32_t SDL_VTM_tsConvADCToTemp(SDL_VTM_adc_code adcCode, int32_t *pMilliDegreeTempVal)
VTM Temperature ADC code to Temperature conversion.
VTM temperature sensor Stat values.
Definition: sdl_ip_vtm.h:162
SDL_VTM_adc_code SDL_VTM_getAdcCode(SDL_VTM_InstTs instance)
read Temperature sensor ADC code
uint8_t SDL_VTM_configVdCtrl
This enumerator define for VTM VD configuration valid map.
Definition: sdl_ip_vtm.h:71