123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- #ifndef OSAL_PWRMGR_H
- #define OSAL_PWRMGR_H
- #include "comdef.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
-
- typedef struct
- {
- uint16 pwrmgr_task_state;
- uint16 pwrmgr_next_timeout;
- uint16 accumulated_sleep_time;
- uint8 pwrmgr_device;
- } pwrmgr_attribute_t;
- #define PWRMGR_ALWAYS_ON 0
- #define PWRMGR_BATTERY 1
- #define PWRMGR_CONSERVE 0
- #define PWRMGR_HOLD 1
- extern pwrmgr_attribute_t pwrmgr_attribute;
-
- extern void osal_pwrmgr_init( void );
-
- extern uint8 osal_pwrmgr_task_state( uint8 task_id, uint8 state );
-
- extern void osal_pwrmgr_device( uint8 pwrmgr_device );
-
- extern void osal_pwrmgr_powerconserve( void );
- #ifdef __cplusplus
- }
- #endif
- #endif
|