AM263Px MCU+ SDK  10.01.00
sdl_ip_vtm.h File Reference

Go to the source code of this file.

Data Structures

struct  SDL_VTM_Stat_val
 VTM temperature sensor Stat values. More...
 

Macros

#define SDL_VTM_VD_CONFIG_CTRL_VID_OPP   (1U)
 
#define SDL_VTM_VD_CONFIG_CTRL_EVT_SEL   (2U)
 
#define SDL_VTM_VD_CONFIG_CTRL_GLB_CFG   (4U)
 
#define SDL_VTM_VD_CONFIG_CTRL_SET_CTL   (1U)
 
#define SDL_VTM_VD_CONFIG_CTRL_OUTRNG_ALRT   (2U)
 
#define SDL_VTM_VD_CONFIG_CTRL_SET_THR   (4U)
 
#define SDL_VTM_BGR_OFF   0x1U
 This enumerator defines the possible VID Codes to set various voltage domain supply voltages. More...
 
#define SDL_VTM_BGR_ON   0x0U
 
#define SDL_VTM_AIP_OFF   0x1U
 
#define SDL_VTM_AIP_ON   0x0U
 
#define SDL_VTM_TMPSOFF_OFF   0x1U
 
#define SDL_VTM_TMPSOFF_ON   0x0U
 
#define SDL_VTM_TMPSOFF_OFF   0x1U
 
#define SDL_VTM_TMPSOFF_ON   0x0U
 
#define SDL_VTM_SENSOR_SEL0   (1U << 0U)
 
#define SDL_VTM_SENSOR_SEL1   (1U << 1U)
 
#define SDL_VTM_SENSOR_SEL2   (1U << 2U)
 
#define SDL_VTM_SENSOR_SEL3   (1U << 3U)
 
#define SDL_VTM_TSENSE_EN   0x1U
 
#define SDL_VTM_TSENSE_DIS   0x0U
 
#define SDL_VTM_TSENSE0_LOW_TH_FLAG   (1U << 0U)
 
#define SDL_VTM_TSENSE0_HOT_FLAG   (1U << 2U)
 
#define SDL_VTM_TSENSE0_COLD_FLAG   (1U << 1U)
 
#define SDL_VTM_TSENSE1_LOW_TH_FLAG   (1U << 4U)
 
#define SDL_VTM_TSENSE1_HOT_FLAG   (1U << 6U)
 
#define SDL_VTM_TSENSE1_COLD_FLAG   (1U << 5U)
 
#define SDL_VTM_OVERRIDE_PATTERN   0x7U
 
#define SDL_VTM_MASK_LOW_TH   (1U)
 
#define SDL_VTM_MASK_COLD   (1U)
 
#define SDL_VTM_MASK_HOT   (1U)
 
#define SDL_VTM_FREEZE_FIFO   1U
 
#define SDL_VTM_CLR_FIFO   1U
 
#define SDL_VTM_CLR_ACCU   1U
 
#define SDL_VTM_BUF_NUM0   0U
 
#define SDL_VTM_BUF_NUM1   1U
 
#define SDL_VTM_BUF_NUM2   2U
 
#define SDL_VTM_BUF_NUM3   3U
 
#define SDL_VTM_TSENSE_OFF   0U
 
#define SDL_VTM_TSENSE_ON   1U
 
#define SDL_VTM_MAXDELAY   0x2FU
 

Typedefs

typedef uint8_t SDL_VTM_configVdCtrl
 This enumerator define for VTM VD configuration valid map. More...
 
typedef uint8_t SDL_VTM_configTsCtrl
 This enumerator define for VTM TS configuration valid map. More...
 
typedef int16_t SDL_VTM_adc_code
 This typedef for VTM temperature sensor ADC code This is the data_out value of the temperature sensor stat register. More...
 

Functions

SDL_VTM_adc_code SDL_VTM_getAdcCode (SDL_VTM_InstTs instance)
 read Temperature sensor ADC code More...
 
int32_t SDL_VTM_tsGetCtrl (SDL_VTM_InstTs instance, uint32_t *pTsCtrlCfg)
 Read VTM Temperature Sensor Control. More...
 
int32_t SDL_VTM_tsConvADCToTemp (SDL_VTM_adc_code adcCode, int32_t *pMilliDegreeTempVal)
 VTM Temperature ADC code to Temperature conversion. More...
 
int32_t SDL_VTM_tsConvTempToAdc (int32_t milliDegreeTempVal, SDL_VTM_adc_code *pAdcCode)
 VTM Temperature to ADC code conversion. More...