CI13LC SDK API手册  2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
ci13lc_lowpower.h
浏览该文件的文档.
1 
10 #ifndef _CI13LC_LOWPOWER_H_
11 #define _CI13LC_LOWPOWER_H_
12 
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C"{
17 #endif
18 
19 /* 配置需要的模式 */
20 #define POWER_MODE_DOWN_FREQUENCY_EN 1
21 #define POWER_MODE_OSC_FREQUENCY_EN 1
22 #define POWER_MODE_SLEEP_EN 0 //sleep模式暂时不使用
23 #define POWER_MODE_DEEP_SLEEP_EN 0 //deep sleep模式暂时不使用
24 
32 typedef enum
33 {
42 
43 void register_lowpower_user_fn(void * enter_lowpower_fn,void * exit_lowpower_fn);
46 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* _CI13LC_LOWPOWER_H_ */
void register_lowpower_user_fn(void *enter_lowpower_fn, void *exit_lowpower_fn)
注册进出低功耗模式切换用户扩展函数
Definition: ci13lc_lowpower.c:400
Definition: ci13lc_lowpower.h:39
power_mode_t get_curr_power_mode(void)
查询当前所处的模式
Definition: ci13lc_lowpower.c:505
power_mode_t
Definition: ci13lc_lowpower.h:32
Definition: ci13lc_lowpower.h:35
Definition: ci13lc_lowpower.h:40
Definition: ci13lc_lowpower.h:37
Definition: ci13lc_lowpower.h:34
power_mode_t power_mode_switch(power_mode_t power_mode)
切换电源模式
Definition: ci13lc_lowpower.c:433
Definition: ci13lc_lowpower.h:36