RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
thermal.h 文件参考
#include <rtdef.h>
#include <dt-bindings/thermal/thermal.h>
+ thermal.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_thermal_trip
 
struct  rt_thermal_zone_params
 
struct  rt_thermal_cooling_cell
 
struct  rt_thermal_cooling_map
 
struct  rt_thermal_zone_device
 
struct  rt_thermal_zone_ops
 
struct  rt_thermal_cooling_device
 
struct  rt_thermal_cooling_device_ops
 
struct  rt_thermal_cooling_governor
 
struct  rt_thermal_notifier
 

宏定义

#define RT_THERMAL_NO_LIMIT   ((rt_uint32_t)THERMAL_NO_LIMIT)
 
#define RT_THERMAL_TEMP_INVALID   (-274000)
 
#define RT_THERMAL_MSG_EVENT_UNSPECIFIED   RT_BIT(0) /* Unspecified event */
 
#define RT_THERMAL_MSG_EVENT_TEMP_SAMPLE   RT_BIT(1) /* New Temperature sample */
 
#define RT_THERMAL_MSG_TRIP_VIOLATED   RT_BIT(2) /* TRIP Point violation */
 
#define RT_THERMAL_MSG_TRIP_CHANGED   RT_BIT(3) /* TRIP Point temperature changed */
 
#define RT_THERMAL_MSG_DEVICE_DOWN   RT_BIT(4) /* Thermal device is down */
 
#define RT_THERMAL_MSG_DEVICE_UP   RT_BIT(5) /* Thermal device is up after a down event */
 
#define RT_THERMAL_MSG_DEVICE_POWER_CAPABILITY_CHANGED   RT_BIT(6) /* Power capability changed */
 
#define RT_THERMAL_MSG_TABLE_CHANGED   RT_BIT(7) /* Thermal table(s) changed */
 
#define RT_THERMAL_MSG_EVENT_KEEP_ALIVE   RT_BIT(8) /* Request for user space handler to respond */
 

类型定义

typedef rt_err_t(* rt_thermal_notifier_callback) (struct rt_thermal_notifier *notifier, rt_ubase_t msg)
 

枚举

enum  rt_thermal_trip_type {
  RT_THERMAL_TRIP_ACTIVE = 0 , RT_THERMAL_TRIP_PASSIVE , RT_THERMAL_TRIP_HOT , RT_THERMAL_TRIP_CRITICAL ,
  RT_THERMAL_TRIP_TYPE_MAX
}
 

函数

rt_err_t rt_thermal_zone_device_register (struct rt_thermal_zone_device *zdev)
 
rt_err_t rt_thermal_zone_device_unregister (struct rt_thermal_zone_device *zdev)
 
rt_err_t rt_thermal_cooling_device_register (struct rt_thermal_cooling_device *cdev)
 
rt_err_t rt_thermal_cooling_device_unregister (struct rt_thermal_cooling_device *cdev)
 
rt_err_t rt_thermal_cooling_governor_register (struct rt_thermal_cooling_governor *gov)
 
rt_err_t rt_thermal_cooling_governor_unregister (struct rt_thermal_cooling_governor *gov)
 
rt_err_t rt_thermal_cooling_device_change_governor (struct rt_thermal_cooling_device *cdev, const char *name)
 
rt_err_t rt_thermal_zone_notifier_register (struct rt_thermal_zone_device *zdev, struct rt_thermal_notifier *notifier)
 
rt_err_t rt_thermal_zone_notifier_unregister (struct rt_thermal_zone_device *zdev, struct rt_thermal_notifier *notifier)
 
void rt_thermal_zone_device_update (struct rt_thermal_zone_device *zdev, rt_ubase_t msg)
 
void rt_thermal_cooling_device_kick (struct rt_thermal_zone_device *zdev)
 
rt_err_t rt_thermal_zone_set_trip (struct rt_thermal_zone_device *zdev, int trip_id, const struct rt_thermal_trip *trip)
 
rt_err_t rt_thermal_zone_get_trip (struct rt_thermal_zone_device *zdev, int trip_id, struct rt_thermal_trip *out_trip)
 

宏定义说明

◆ RT_THERMAL_NO_LIMIT

#define RT_THERMAL_NO_LIMIT   ((rt_uint32_t)THERMAL_NO_LIMIT)

在文件 thermal.h18 行定义.

◆ RT_THERMAL_TEMP_INVALID

#define RT_THERMAL_TEMP_INVALID   (-274000)

在文件 thermal.h19 行定义.

◆ RT_THERMAL_MSG_EVENT_UNSPECIFIED

#define RT_THERMAL_MSG_EVENT_UNSPECIFIED   RT_BIT(0) /* Unspecified event */

在文件 thermal.h158 行定义.

◆ RT_THERMAL_MSG_EVENT_TEMP_SAMPLE

#define RT_THERMAL_MSG_EVENT_TEMP_SAMPLE   RT_BIT(1) /* New Temperature sample */

在文件 thermal.h159 行定义.

◆ RT_THERMAL_MSG_TRIP_VIOLATED

#define RT_THERMAL_MSG_TRIP_VIOLATED   RT_BIT(2) /* TRIP Point violation */

在文件 thermal.h160 行定义.

◆ RT_THERMAL_MSG_TRIP_CHANGED

#define RT_THERMAL_MSG_TRIP_CHANGED   RT_BIT(3) /* TRIP Point temperature changed */

在文件 thermal.h161 行定义.

◆ RT_THERMAL_MSG_DEVICE_DOWN

#define RT_THERMAL_MSG_DEVICE_DOWN   RT_BIT(4) /* Thermal device is down */

在文件 thermal.h162 行定义.

◆ RT_THERMAL_MSG_DEVICE_UP

#define RT_THERMAL_MSG_DEVICE_UP   RT_BIT(5) /* Thermal device is up after a down event */

在文件 thermal.h163 行定义.

◆ RT_THERMAL_MSG_DEVICE_POWER_CAPABILITY_CHANGED

#define RT_THERMAL_MSG_DEVICE_POWER_CAPABILITY_CHANGED   RT_BIT(6) /* Power capability changed */

在文件 thermal.h164 行定义.

◆ RT_THERMAL_MSG_TABLE_CHANGED

#define RT_THERMAL_MSG_TABLE_CHANGED   RT_BIT(7) /* Thermal table(s) changed */

在文件 thermal.h165 行定义.

◆ RT_THERMAL_MSG_EVENT_KEEP_ALIVE

#define RT_THERMAL_MSG_EVENT_KEEP_ALIVE   RT_BIT(8) /* Request for user space handler to respond */

在文件 thermal.h166 行定义.

类型定义说明

◆ rt_thermal_notifier_callback

typedef rt_err_t(* rt_thermal_notifier_callback) (struct rt_thermal_notifier *notifier, rt_ubase_t msg)

在文件 thermal.h168 行定义.

枚举类型说明

◆ rt_thermal_trip_type

枚举值
RT_THERMAL_TRIP_ACTIVE 
RT_THERMAL_TRIP_PASSIVE  
RT_THERMAL_TRIP_HOT  
RT_THERMAL_TRIP_CRITICAL  
RT_THERMAL_TRIP_TYPE_MAX  

在文件 thermal.h26 行定义.

27{
32
34};
@ RT_THERMAL_TRIP_PASSIVE
@ RT_THERMAL_TRIP_ACTIVE
@ RT_THERMAL_TRIP_CRITICAL
@ RT_THERMAL_TRIP_HOT
@ RT_THERMAL_TRIP_TYPE_MAX

函数说明

◆ rt_thermal_zone_device_register()

rt_err_t rt_thermal_zone_device_register ( struct rt_thermal_zone_device * zdev)

◆ rt_thermal_zone_device_unregister()

rt_err_t rt_thermal_zone_device_unregister ( struct rt_thermal_zone_device * zdev)

◆ rt_thermal_cooling_device_register()

rt_err_t rt_thermal_cooling_device_register ( struct rt_thermal_cooling_device * cdev)

◆ rt_thermal_cooling_device_unregister()

rt_err_t rt_thermal_cooling_device_unregister ( struct rt_thermal_cooling_device * cdev)

◆ rt_thermal_cooling_governor_register()

rt_err_t rt_thermal_cooling_governor_register ( struct rt_thermal_cooling_governor * gov)

◆ rt_thermal_cooling_governor_unregister()

rt_err_t rt_thermal_cooling_governor_unregister ( struct rt_thermal_cooling_governor * gov)

◆ rt_thermal_cooling_device_change_governor()

rt_err_t rt_thermal_cooling_device_change_governor ( struct rt_thermal_cooling_device * cdev,
const char * name )

◆ rt_thermal_zone_notifier_register()

rt_err_t rt_thermal_zone_notifier_register ( struct rt_thermal_zone_device * zdev,
struct rt_thermal_notifier * notifier )

◆ rt_thermal_zone_notifier_unregister()

rt_err_t rt_thermal_zone_notifier_unregister ( struct rt_thermal_zone_device * zdev,
struct rt_thermal_notifier * notifier )

◆ rt_thermal_zone_device_update()

void rt_thermal_zone_device_update ( struct rt_thermal_zone_device * zdev,
rt_ubase_t msg )

◆ rt_thermal_cooling_device_kick()

void rt_thermal_cooling_device_kick ( struct rt_thermal_zone_device * zdev)

◆ rt_thermal_zone_set_trip()

rt_err_t rt_thermal_zone_set_trip ( struct rt_thermal_zone_device * zdev,
int trip_id,
const struct rt_thermal_trip * trip )

◆ rt_thermal_zone_get_trip()

rt_err_t rt_thermal_zone_get_trip ( struct rt_thermal_zone_device * zdev,
int trip_id,
struct rt_thermal_trip * out_trip )