|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "sleep_math.h"Go to the source code of this file.
Functions | |
| uint16_t | sleep_wut_reload (uint32_t ms, uint32_t lsi_hz) |
| uint32_t | sleep_rtc_steps (uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t ssr) |
| uint32_t | sleep_elapsed_ms (uint32_t from_steps, uint32_t to_steps, uint32_t lsi_hz) |
| uint32_t | sleep_lsi_hz (uint32_t steps, uint32_t us) |
| uint32_t sleep_elapsed_ms | ( | uint32_t | from_steps, |
| uint32_t | to_steps, | ||
| uint32_t | lsi_hz ) |
Definition at line 23 of file sleep_math.c.
References SLEEP_DAY_STEPS, and SLEEP_RTC_ASYNC_DIV.
Referenced by board_sleep(), anonymous_namespace{idle_e2e.cpp}::run(), and test_elapsed().
| uint32_t sleep_lsi_hz | ( | uint32_t | steps, |
| uint32_t | us ) |
Definition at line 33 of file sleep_math.c.
References SLEEP_RTC_ASYNC_DIV.
Referenced by measure_lsi(), and test_lsi_measurement().
| uint32_t sleep_rtc_steps | ( | uint8_t | hours, |
| uint8_t | minutes, | ||
| uint8_t | seconds, | ||
| uint32_t | ssr ) |
Definition at line 14 of file sleep_math.c.
References SLEEP_RTC_SYNC_DIV.
Referenced by rtc_stamp(), test_elapsed(), and test_rtc_steps_count_down_subseconds().
| uint16_t sleep_wut_reload | ( | uint32_t | ms, |
| uint32_t | lsi_hz ) |
Definition at line 3 of file sleep_math.c.
References SLEEP_WUT_DIV.
Referenced by board_sleep(), anonymous_namespace{idle_e2e.cpp}::run(), and test_wut_reload().