RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
struct | rt_pm_ops |
struct | rt_device_pm_ops |
struct | rt_device_pm |
struct | rt_pm_module |
struct | rt_pm |
struct | rt_pm_notify |
宏定义 | |
#define | PM_SLEEP_MODE_NAMES |
#define | PM_RUN_MODE_NAMES |
#define | RT_PM_DEFAULT_SLEEP_MODE PM_SLEEP_MODE_NONE |
#define | RT_PM_DEFAULT_DEEPSLEEP_MODE PM_SLEEP_MODE_DEEP |
#define | RT_PM_DEFAULT_RUN_MODE PM_RUN_MODE_NORMAL_SPEED |
#define | RT_PM_DEVICE_CTRL_RELEASE (RT_DEVICE_CTRL_BASE(PM) + 0x00) |
#define | RT_PM_DEVICE_CTRL_REQUEST (RT_DEVICE_CTRL_BASE(PM) + 0x01) |
枚举 | |
enum | { PM_SLEEP_MODE_NONE = 0 , PM_SLEEP_MODE_IDLE , PM_SLEEP_MODE_LIGHT , PM_SLEEP_MODE_DEEP , PM_SLEEP_MODE_STANDBY , PM_SLEEP_MODE_SHUTDOWN , PM_SLEEP_MODE_MAX } |
enum | { PM_RUN_MODE_HIGH_SPEED = 0 , PM_RUN_MODE_NORMAL_SPEED , PM_RUN_MODE_MEDIUM_SPEED , PM_RUN_MODE_LOW_SPEED , PM_RUN_MODE_MAX } |
enum | { RT_PM_FREQUENCY_PENDING = 0x01 } |
enum | pm_module_id { PM_NONE_ID = 0 , PM_POWER_ID , PM_BOARD_ID , PM_BSP_ID , PM_MAIN_ID , PM_PMS_ID , PM_PMC_ID , PM_TASK_ID , PM_SPI_ID , PM_I2C_ID , PM_UART_ID , PM_CAN_ID , PM_ETH_ID , PM_SENSOR_ID , PM_LCD_ID , PM_KEY_ID , PM_TP_ID , PM_MODULE_MAX_ID } |
enum | { RT_PM_ENTER_SLEEP = 0 , RT_PM_EXIT_SLEEP } |
#define PM_SLEEP_MODE_NAMES |
#define PM_RUN_MODE_NAMES |
#define RT_PM_DEFAULT_SLEEP_MODE PM_SLEEP_MODE_NONE |
#define RT_PM_DEFAULT_DEEPSLEEP_MODE PM_SLEEP_MODE_DEEP |
#define RT_PM_DEFAULT_RUN_MODE PM_RUN_MODE_NORMAL_SPEED |
#define RT_PM_DEVICE_CTRL_RELEASE (RT_DEVICE_CTRL_BASE(PM) + 0x00) |
#define RT_PM_DEVICE_CTRL_REQUEST (RT_DEVICE_CTRL_BASE(PM) + 0x01) |
anonymous enum |
枚举值 | ||
---|---|---|
PM_SLEEP_MODE_NONE | 0 | |
PM_SLEEP_MODE_IDLE | ||
PM_SLEEP_MODE_LIGHT | ||
PM_SLEEP_MODE_DEEP | ||
PM_SLEEP_MODE_STANDBY | ||
PM_SLEEP_MODE_SHUTDOWN | ||
PM_SLEEP_MODE_MAX |
anonymous enum |
枚举值 | ||
---|---|---|
PM_RUN_MODE_HIGH_SPEED | 0 | |
PM_RUN_MODE_NORMAL_SPEED | ||
PM_RUN_MODE_MEDIUM_SPEED | ||
PM_RUN_MODE_LOW_SPEED | ||
PM_RUN_MODE_MAX |
anonymous enum |
枚举值 | ||
---|---|---|
RT_PM_FREQUENCY_PENDING | 0x01 |
enum pm_module_id |
Modules used for pm_module_request(PM_BOARD_ID, PM_SLEEP_MODE_IDLE) pm_module_release(PM_BOARD_ID, PM_SLEEP_MODE_IDLE) pm_module_release_all(PM_BOARD_ID, PM_SLEEP_MODE_IDLE)
anonymous enum |
枚举值 | ||
---|---|---|
RT_PM_ENTER_SLEEP | 0 | |
RT_PM_EXIT_SLEEP |
rt_err_t rt_pm_request | ( | rt_uint8_t | sleep_mode | ) |
rt_err_t rt_pm_release | ( | rt_uint8_t | sleep_mode | ) |
rt_err_t rt_pm_release_all | ( | rt_uint8_t | sleep_mode | ) |
rt_err_t rt_pm_run_enter | ( | rt_uint8_t | run_mode | ) |
void rt_pm_device_register | ( | struct rt_device * | device, |
const struct rt_device_pm_ops * | ops ) |
void rt_pm_device_unregister | ( | struct rt_device * | device | ) |
void rt_pm_notify_set | ( | void(* | notify )(rt_uint8_t event, rt_uint8_t mode, void *data), |
void * | data ) |
void rt_pm_default_set | ( | rt_uint8_t | sleep_mode | ) |
void rt_system_pm_init | ( | const struct rt_pm_ops * | ops, |
rt_uint8_t | timer_mask, | ||
void * | user_data ) |
rt_err_t rt_pm_module_request | ( | uint8_t | module_id, |
rt_uint8_t | sleep_mode ) |
rt_err_t rt_pm_module_release | ( | uint8_t | module_id, |
rt_uint8_t | sleep_mode ) |
rt_err_t rt_pm_module_release_all | ( | uint8_t | module_id, |
rt_uint8_t | sleep_mode ) |
void rt_pm_module_delay_sleep | ( | rt_uint8_t | module_id, |
rt_tick_t | timeout ) |
rt_uint32_t rt_pm_module_get_status | ( | void | ) |
rt_uint8_t rt_pm_get_sleep_mode | ( | void | ) |
struct rt_pm * rt_pm_get_handle | ( | void | ) |
rt_err_t rt_pm_sleep_request | ( | rt_uint16_t | module_id, |
rt_uint8_t | mode ) |
rt_err_t rt_pm_sleep_release | ( | rt_uint16_t | module_id, |
rt_uint8_t | mode ) |
rt_err_t rt_pm_sleep_none_request | ( | rt_uint16_t | module_id | ) |
rt_err_t rt_pm_sleep_none_release | ( | rt_uint16_t | module_id | ) |
rt_err_t rt_pm_sleep_idle_request | ( | rt_uint16_t | module_id | ) |
rt_err_t rt_pm_sleep_idle_release | ( | rt_uint16_t | module_id | ) |
rt_err_t rt_pm_sleep_light_request | ( | rt_uint16_t | module_id | ) |
rt_err_t rt_pm_sleep_light_release | ( | rt_uint16_t | module_id | ) |