Hardware Abstraction Layer for FreeRTOS
Real Time Clock (RTC) or Warl Clock driver.
Collaboration diagram for Real Time Clock (RTC) or Warl Clock driver.:

Data Structures

struct  rtc_generic
 
struct  timespec
 

Typedefs

typedef int64_t time_t
 

Functions

struct rtc * rtc_init (uint32_t index)
 
int32_t rtc_deinit (struct rtc *rtc)
 
int32_t rtc_adjust (struct rtc *rtc, struct timespec *offset, TickType_t waittime)
 
int32_t rtc_getTime (struct rtc *rtc, struct timespec *time, TickType_t waittime)
 
int32_t rtc_setTime (struct rtc *rtc, struct timespec *time, TickType_t waittime)
 
int32_t rtc_adjustISR (struct rtc *rtc, struct timespec *offset)
 
int32_t rtc_getTimeISR (struct rtc *rtc, struct timespec *time)
 
int32_t rtc_setTimeISR (struct rtc *rtc, struct timespec *time)
 

Detailed Description

#include <rtc.h>

Typedef Documentation

◆ time_t

typedef int64_t time_t

Function Documentation

◆ rtc_adjust()

int32_t rtc_adjust ( struct rtc *  rtc,
struct timespec offset,
TickType_t  waittime 
)

◆ rtc_adjustISR()

int32_t rtc_adjustISR ( struct rtc *  rtc,
struct timespec offset 
)

◆ rtc_deinit()

int32_t rtc_deinit ( struct rtc *  rtc)

Deinit Driver Instants

Parameters
rtcInstant
Returns
0 on ok -1 on failure

◆ rtc_getTime()

int32_t rtc_getTime ( struct rtc *  rtc,
struct timespec time,
TickType_t  waittime 
)

◆ rtc_getTimeISR()

int32_t rtc_getTimeISR ( struct rtc *  rtc,
struct timespec time 
)

◆ rtc_init()

struct rtc* rtc_init ( uint32_t  index)

Init Function

Parameters
indexin rtcs Array
Returns
RTC Instants or NULL

◆ rtc_setTime()

int32_t rtc_setTime ( struct rtc *  rtc,
struct timespec time,
TickType_t  waittime 
)

◆ rtc_setTimeISR()

int32_t rtc_setTimeISR ( struct rtc *  rtc,
struct timespec time 
)
rtc.h