ChibiOS/HAL 9.0.0
hal_rtc.c File Reference

RTC Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void rtcInit (void)
 RTC Driver initialization.
void rtcObjectInit (RTCDriver *rtcp)
 Initializes a generic RTC driver object.
void rtcSetTime (RTCDriver *rtcp, const RTCDateTime *timespec)
 Set current time.
void rtcGetTime (RTCDriver *rtcp, RTCDateTime *timespec)
 Get current time.
void rtcSetAlarm (RTCDriver *rtcp, rtcalarm_t alarm, const RTCAlarm *alarmspec)
 Set alarm time.
void rtcGetAlarm (RTCDriver *rtcp, rtcalarm_t alarm, RTCAlarm *alarmspec)
 Get current alarm.
void rtcSetCallback (RTCDriver *rtcp, rtccb_t callback)
 Enables or disables RTC callbacks.
void rtcConvertDateTimeToStructTm (const RTCDateTime *timespec, struct tm *timp, uint32_t *tv_msec)
 Convert RTCDateTime to broken-down time structure.
void rtcConvertStructTmToDateTime (const struct tm *timp, uint32_t tv_msec, RTCDateTime *timespec)
 Convert broken-down time structure to RTCDateTime.
uint32_t rtcConvertDateTimeToFAT (const RTCDateTime *timespec)
 Get current time in format suitable for usage in FAT file system.

Variables

static const uint8_t month_len [12]
static const uint16_t accu_month_len [12]

Detailed Description

RTC Driver code.

Definition in file hal_rtc.c.