RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
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 } |
#define RT_THERMAL_NO_LIMIT ((rt_uint32_t)THERMAL_NO_LIMIT) |
#define RT_THERMAL_MSG_EVENT_TEMP_SAMPLE RT_BIT(1) /* New Temperature sample */ |
#define RT_THERMAL_MSG_TRIP_CHANGED RT_BIT(3) /* TRIP Point temperature changed */ |
#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 ) |