RTC
|
RTC.h File Reference
Detailed Description
- Date:
- 2015-05-18
NOTE: This file is generated by DAVE. Any manual modification done to this file will be lost when the code is regenerated.
Definition in file RTC.h.
#include <xmc_scu.h>
#include <xmc_rtc.h>
#include "rtc_conf.h"
#include <DAVE_Common.h>
#include "rtc_extern.h"
Data Structures | |
struct | RTC_CONFIG |
struct | RealTimeClock |
Functions | |
DAVE_APP_VERSION_t | RTC_GetAppVersion (void) |
Get RTC APP version. | |
RTC_STATUS_t | RTC_Init (RTC_t *const handle) |
Initializes RTC module. | |
RTC_STATUS_t | RTC_Time (time_t *time_value) |
Returns the time in seconds since the epoch time(01/01/1970). | |
__STATIC_INLINE void | RTC_Start (void) |
Starts the RTC running. | |
__STATIC_INLINE void | RTC_Stop (void) |
Stops the RTC running. | |
RTC_STATUS_t | RTC_SetTime (XMC_RTC_TIME_t *time) |
Sets the time. | |
RTC_STATUS_t | RTC_SetAlarmTime (XMC_RTC_ALARM_t *alarm) |
Sets the alarm time. | |
void | RTC_GetTime (XMC_RTC_TIME_t *time) |
Gets the time. | |
void | RTC_GetAlarmTime (XMC_RTC_ALARM_t *alarm) |
Gets the alarm time. | |
uint32_t | RTC_GetFlagStatus (void) |
Gets the flag status. | |
enum | RTC_STATUS { RTC_STATUS_SUCCESS = 0U, RTC_STATUS_FAILURE = 1U } |
enum | RTC_START { RTC_START_DISABLE = 0x0U, RTC_START_ENABLE = 0x1U } |
enum | RTC_INT { RTC_INT_PERIODIC_SEC_DISABLE = 0x0U, RTC_INT_PERIODIC_SEC_ENABLE = 0x1U, RTC_INT_PERIODIC_MIN_DISABLE = 0x0U, RTC_INT_PERIODIC_MIN_ENABLE = 0x1U, RTC_INT_PERIODIC_HOUR_DISABLE = 0x0U, RTC_INT_PERIODIC_HOUR_ENABLE = 0x1U, RTC_INT_PERIODIC_DAY_DISABLE = 0x0U, RTC_INT_PERIODIC_DAY_ENABLE = 0x1U, RTC_INT_PERIODIC_MONTH_DISABLE = 0x0U, RTC_INT_PERIODIC_MONTH_ENABLE = 0x1U, RTC_INT_PERIODIC_YEAR_DISABLE = 0x0U, RTC_INT_PERIODIC_YEAR_ENABLE = 0x1U, RTC_INT_ALARM_DISABLE = 0x0U, RTC_INT_ALARM_ENABLE = 0x1U } |
typedef enum RTC_START | RTC_START_t |
typedef enum RTC_INT | RTC_INT_t |
typedef struct RTC_CONFIG | RTC_CONFIG_t |
typedef struct RealTimeClock | RTC_t |