Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Go to the source code of this file.
Data Structures | |
struct | RTC_Device_t |
A structure to represent RTC device. More... | |
Typedefs | |
typedef void(* | rtc_cb_func_t) (RTC_Device_t *dev) |
Enumerations | |
enum | RTC_ALARM_t { RTC_ALARM_0, RTC_ALARM_1, RTC_ALARM_MAX } |
enum | RTC_ALARM_MODE_t { RTC_ALARM_MODE_IDLE, RTC_ALARM_MODE_SINGLE, RTC_ALARM_MODE_REPEAT } |
Functions | |
RTC_Device_t * | RTC_devRequest (void) |
Request A RTC Device. More... | |
int32_t | RTC_devInit (RTC_Device_t *dev) |
Initialize RTC Timer. More... | |
int32_t | RTC_devStop (RTC_Device_t *dev) |
Stop RTC Timer. More... | |
int32_t | RTC_devStartAlarm (RTC_Device_t *dev, RTC_ALARM_t alarm, RTC_ALARM_MODE_t mode, uint32_t sec, void *cb) |
Start a Alarm Timer. More... | |
int32_t | RTC_devStopAlarm (RTC_Device_t *dev, RTC_ALARM_t alarm) |
Stop a Alarm Timer. More... | |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
typedef void(* rtc_cb_func_t) (RTC_Device_t *dev) |
enum RTC_ALARM_MODE_t |
enum RTC_ALARM_t |
int32_t RTC_devInit | ( | RTC_Device_t * | dev | ) |
Initialize RTC Timer.
dev | The pointer to RTC device, |
RTC_Device_t* RTC_devRequest | ( | void | ) |
Request A RTC Device.
Request A RTC Device.
int32_t RTC_devStartAlarm | ( | RTC_Device_t * | dev, |
RTC_ALARM_t | alarm, | ||
RTC_ALARM_MODE_t | mode, | ||
uint32_t | sec, | ||
void * | cb | ||
) |
Start a Alarm Timer.
dev | The pointer to RTC device, |
alarm | The enumeration of the alarm to be started. |
mode | The enumeration of alarm mode. |
sec | The seconds for the alarm to fire. |
cb | The pointer to the call back function when the alarm fires. |
int32_t RTC_devStop | ( | RTC_Device_t * | dev | ) |
Stop RTC Timer.
dev | The pointer to RTC device, |
int32_t RTC_devStopAlarm | ( | RTC_Device_t * | dev, |
RTC_ALARM_t | alarm | ||
) |
Stop a Alarm Timer.
dev | The pointer to RTC device, |
alarm | The enumeration of the alarm to be started. |