Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
TI VTM temperature sensor

TI VTM sensor driver API extension. More...

Enumerations

enum  ti_vtm_sensor_trigger_type { TI_VTM_TRIG_TH0 = SENSOR_TRIG_PRIV_START + 0 , TI_VTM_TRIG_TH1 = SENSOR_TRIG_PRIV_START + 1 , TI_VTM_TRIG_TH2 = SENSOR_TRIG_PRIV_START + 2 }
 VTM-specific thermal trip trigger types. More...
enum  vtm_sensor_attribute { TI_VTM_ATTR_TH0_THRESH = SENSOR_ATTR_PRIV_START + 0 , TI_VTM_ATTR_TH1_THRESH = SENSOR_ATTR_PRIV_START + 1 , TI_VTM_ATTR_TH2_THRESH = SENSOR_ATTR_PRIV_START + 2 , TI_VTM_ATTR_OUTRG_ALERT = SENSOR_ATTR_PRIV_START + 3 }
 VTM-specific sensor attributes. More...

Detailed Description

TI VTM sensor driver API extension.

Since
4.5.0
Version
0.1.0

Enumeration Type Documentation

◆ ti_vtm_sensor_trigger_type

#include <zephyr/drivers/sensor/ti_vtm.h>

VTM-specific thermal trip trigger types.

Three independent temperature trip thresholds, each triggering an interrupt when the die temperature crosses the configured boundary. Configure thresholds via sensor_attr_set() with vtm_sensor_attribute, then register handlers via sensor_trigger_set().

Enumerator
TI_VTM_TRIG_TH0 

Low temperature trip (LT_TH0): fires when temp falls below threshold.

TI_VTM_TRIG_TH1 

High temperature trip (GT_TH1): fires when temp rises above threshold.

TI_VTM_TRIG_TH2 

Critical temperature trip (GT_TH2): fires when temp rises above threshold.

◆ vtm_sensor_attribute

#include <zephyr/drivers/sensor/ti_vtm.h>

VTM-specific sensor attributes.

VTM-specific attributes for sensor_attr_set() / sensor_attr_get().

Enumerator
TI_VTM_ATTR_TH0_THRESH 

Cold threshold in milli-Celsius (LT_TH0).

TI_VTM_ATTR_TH1_THRESH 

Hot threshold in milli-Celsius (GT_TH1).

TI_VTM_ATTR_TH2_THRESH 

Critical threshold in milli-Celsius (GT_TH2).

TI_VTM_ATTR_OUTRG_ALERT 

Read-only: MAXT_OUTRG_ALERT status.

val1 = 1 while temperature exceeds maxt-outrg-thresh. val1 = 0 once temperature drops below maxt-outrg-thresh0.