Edit online

接口设计

以下接口提供给 Linux Thermal 子系统调用的标准接口:
1. tsen_cpu_get_temp
函数原型 static inline int tsen_cpu_get_temp(struct thermal_zone_device *thermal, int *temp)
功能说明 读取 CPU 位置处的 sensor 温度数据
参数定义 thermal - 指向 zone 设备 temp - 用来保存读取到的温度
返回值 0,成功
注意事项 -
2. tsen_adc_get_temp
函数原型 static inline int tsen_adc_get_temp(struct thermal_zone_device *thermal, int *temp)
功能说明 读取 ADC 位置处的 sensor 温度数据
参数定义 thermal - 指向 zone 设备 temp - 用来保存读取到的温度
返回值 0,成功
注意事项 -