|
Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
|
Macros | |
| #define | BFLB_RTC_SEC2TIME(s) (s * 32768) |
| #define | BFLB_RTC_TIME2SEC(time) (time / 32768) |
Functions | |
| void | bflb_rtc_disable (struct bflb_device_s *dev) |
| clear and disable rtc. More... | |
| void | bflb_rtc_set_time (struct bflb_device_s *dev, uint64_t time) |
| Set rtc alarming time. More... | |
| uint64_t | bflb_rtc_get_time (struct bflb_device_s *dev) |
| Get rtc current time. More... | |
| #define BFLB_RTC_SEC2TIME | ( | s | ) | (s * 32768) |
Definition at line 14 of file bflb_rtc.h.
| #define BFLB_RTC_TIME2SEC | ( | time | ) | (time / 32768) |
Definition at line 15 of file bflb_rtc.h.
| void bflb_rtc_disable | ( | struct bflb_device_s * | dev | ) |
clear and disable rtc.
| [in] | dev | device handle |
| uint64_t bflb_rtc_get_time | ( | struct bflb_device_s * | dev | ) |
Get rtc current time.
| [in] | dev | device handle |
| void bflb_rtc_set_time | ( | struct bflb_device_s * | dev, |
| uint64_t | time | ||
| ) |
Set rtc alarming time.
| [in] | dev | device handle |
| [in] | time | alarming time, unit is (1/32768 s) |