PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
rtc.h File Reference
#include <time.h>
#include <pbl/device.h>

Data Structures

struct  pbl_rtc_ops
 RTC driver operations. More...
 
struct  pbl_rtc
 RTC. More...
 

Macros

#define PBL_RTC_INIT(sym, _name, _init, _parent, _ops)
 Initialize a struct pbl_rtc.
 

Functions

int pbl_rtc_get_time (const struct pbl_rtc *rtc, time_t *t)
 Read the time.
 
int pbl_rtc_set_time (const struct pbl_rtc *rtc, time_t t)
 Set the time.
 

Variables

const struct pbl_rtc *const RTC
 The board's RTC.