ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_rtc.h
Go to the documentation of this file.
1 
17 #ifndef RUUVI_INTERFACE_RTC_H
18 #define RUUVI_INTERFACE_RTC_H
20 #include "ruuvi_driver_error.h"
21 
22 #if RI_RTC_ENABLED
23 # define RUUVI_NRF5_SDK15_RTC_ENABLED RUUVI_NRF5_SDK15_ENABLED
24 #endif
25 
32 
39 
46 uint64_t ri_rtc_millis (void);
47 
50 #endif
uint32_t rd_status_t
bitfield for representing errors
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
rd_status_t ri_rtc_init(void)
Initializes RTC at 0 ms.
rd_status_t ri_rtc_uninit(void)
Stop RTC if applicable.
uint64_t ri_rtc_millis(void)
Get milliseconds since init.