| | |
| | | /* |
| | | * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * its subsidiaries and affiliates (collectly called MKSEMI). |
| | | * |
| | | * All rights reserved. |
| | |
| | | struct SLEEP_TIMER_HANDLE_T |
| | | { |
| | | enum SLEEP_TIMER_MODE_T mode; |
| | | uint16_t enable; |
| | | uint16_t int_en; |
| | | uint32_t time; |
| | | uint32_t int_en; |
| | | int32_t ppm; |
| | | drv_callback_t callback; |
| | | }; |
| | |
| | | extern "C" { |
| | | #endif |
| | | |
| | | extern struct SLEEP_TIMER_HANDLE_T sleep_timer_handle; |
| | | |
| | | void sleep_timer_open(bool int_en, enum SLEEP_TIMER_MODE_T mode, drv_callback_t callback); |
| | | void sleep_timer_close(void); |
| | | |
| | | void sleep_timer_start(uint32_t time); |
| | | void sleep_timer_stop(void); |
| | | |
| | | uint32_t high_xtal_off_time(void); |
| | | uint32_t xtal_38m4_off_time(void); |
| | | |
| | | void sleep_timer_ppm_set(int32_t ppm); |
| | | int32_t sleep_timer_ppm_get(void); |