ChibiOS/HAL  6.1.0
hal_rtc_lld.h File Reference

PLATFORM RTC subsystem low level driver header. More...

Go to the source code of this file.

Data Structures

struct  RTCAlarm
 Type of a structure representing an RTC alarm time stamp. More...
 
struct  RTCDriverVMT
 RTCDriver virtual methods table. More...
 
struct  RTCDriver
 Structure representing an RTC driver. More...
 

Macros

#define _rtc_driver_methods   _file_stream_methods
 FileStream specific methods. More...
 
Implementation capabilities
#define RTC_SUPPORTS_CALLBACKS   TRUE
 Callback support int the driver. More...
 
#define RTC_ALARMS   2
 Number of alarms available. More...
 
#define RTC_HAS_STORAGE   FALSE
 Presence of a local persistent storage. More...
 
PLATFORM configuration options
#define PLATFORM_RTC_USE_RTC1   FALSE
 RTCD1 driver enable switch. More...
 

Typedefs

typedef uint32_t rtcalarm_t
 Type of an RTC alarm number. More...
 
typedef void(* rtccb_t) (RTCDriver *rtcp, rtcevent_t event)
 Type of a generic RTC callback. More...
 

Enumerations

Functions

void rtc_lld_init (void)
 RTC driver identifier. More...
 
void rtc_lld_set_time (RTCDriver *rtcp, const RTCDateTime *timespec)
 Set current time. More...
 
void rtc_lld_get_time (RTCDriver *rtcp, RTCDateTime *timespec)
 Get current time. More...
 
void rtc_lld_set_alarm (RTCDriver *rtcp, rtcalarm_t alarm, const RTCAlarm *alarmspec)
 Set alarm time. More...
 
void rtc_lld_get_alarm (RTCDriver *rtcp, rtcalarm_t alarm, RTCAlarm *alarmspec)
 Get alarm time. More...
 

Detailed Description

PLATFORM RTC subsystem low level driver header.

Definition in file hal_rtc_lld.h.