VSF Documented
|
Macros | |
#define | VSF_RTC_CFG_FUNCTION_RENAME DISABLED |
Functions | |
vsf_err_t | vsf_rtc_init (vsf_rtc_t *rtc_ptr, vsf_rtc_cfg_t *cfg_ptr) |
initialize a rtc instance. | |
void | vsf_rtc_fini (vsf_rtc_t *rtc_ptr) |
finalize a rtc instance. | |
fsm_rt_t | vsf_rtc_enable (vsf_rtc_t *rtc_ptr) |
enable interrupt masks of rtc instance. | |
fsm_rt_t | vsf_rtc_disable (vsf_rtc_t *rtc_ptr) |
disable interrupt masks of rtc instance. | |
vsf_err_t | vsf_rtc_get (vsf_rtc_t *rtc_ptr, vsf_rtc_tm_t *rtc_tm) |
get rtc date time | |
vsf_err_t | vsf_rtc_set (vsf_rtc_t *rtc_ptr, const vsf_rtc_tm_t *rtc_tm) |
set rtc date time | |
vsf_err_t | vsf_rtc_get_time (vsf_rtc_t *rtc_ptr, vsf_rtc_time_t *second_ptr, vsf_rtc_time_t *millisecond_ptr) |
get rtc second and milli second of unix time | |
vsf_err_t | vsf_rtc_set_time (vsf_rtc_t *rtc_ptr, vsf_rtc_time_t second, vsf_rtc_time_t millisecond) |
set rtc date time | |
vsf_rtc_capability_t | vsf_rtc_capability (vsf_rtc_t *rtc_ptr) |
get the capability of rtc instance. | |
bool | vsf_rtc_tm_is_valid (const vsf_rtc_tm_t *rtc_tm) |
bool | vsf_rtc_tm_is_epoch_time (const vsf_rtc_tm_t *rtc_tm) |
#define VSF_RTC_CFG_FUNCTION_RENAME DISABLED |
vsf_err_t vsf_rtc_init | ( | vsf_rtc_t * | rtc_ptr, |
vsf_rtc_cfg_t * | cfg_ptr | ||
) |
initialize a rtc instance.
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | cfg_ptr | a pointer to structure vsf_rtc_cfg_t |
void vsf_rtc_fini | ( | vsf_rtc_t * | rtc_ptr | ) |
enable interrupt masks of rtc instance.
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | irq_mask | one or more value of enum vsf_rtc_irq_mask_t |
disable interrupt masks of rtc instance.
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | irq_mask | one or more value of enum vsf_rtc_irq_mask_t, vsf_rtc_irq_mask_t |
vsf_err_t vsf_rtc_get | ( | vsf_rtc_t * | rtc_ptr, |
vsf_rtc_tm_t * | rtc_tm | ||
) |
get rtc date time
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | rtc_tm | a pointer to structure vsf_rtc_tm_t |
vsf_err_t vsf_rtc_set | ( | vsf_rtc_t * | rtc_ptr, |
const vsf_rtc_tm_t * | rtc_tm | ||
) |
set rtc date time
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | rtc_tm | a pointer to structure vsf_rtc_tm_t |
vsf_err_t vsf_rtc_get_time | ( | vsf_rtc_t * | rtc_ptr, |
vsf_rtc_time_t * | second_ptr, | ||
vsf_rtc_time_t * | millisecond_ptr | ||
) |
get rtc second and milli second of unix time
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | second_ptr | a pointer to type vsf_rtc_time_t |
[in] | millisecond_ptr | a pointer to type vsf_rtc_time_t |
[in] | rtc_ptr | rtc instance |
[out] | rtc | data time |
vsf_err_t vsf_rtc_set_time | ( | vsf_rtc_t * | rtc_ptr, |
vsf_rtc_time_t | second, | ||
vsf_rtc_time_t | millisecond | ||
) |
set rtc date time
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
[in] | rtc_tm | a pointer to structure vsf_rtc_tm_t |
vsf_rtc_capability_t vsf_rtc_capability | ( | vsf_rtc_t * | rtc_ptr | ) |
get the capability of rtc instance.
[in] | rtc_ptr | a pointer to structure vsf_rtc_t |
bool vsf_rtc_tm_is_valid | ( | const vsf_rtc_tm_t * | rtc_tm | ) |
bool vsf_rtc_tm_is_epoch_time | ( | const vsf_rtc_tm_t * | rtc_tm | ) |