Kamcho Library 02.00.03
lib.kamcho.02.00.03.287
|
Go to the source code of this file.
Data Structures | |
struct | RTC_State_t |
A structure to represent RTC device state. More... | |
struct | RTC_Device_Type |
A structure to represent RTC device. More... | |
Typedefs | |
typedef const struct RTC_Device_Type | RTC_Device_t |
typedef void(* | rtc_cb_func_t) (RTC_Device_t *dev) |
Enumerations | |
enum | { RTC_MODE_NONE, RTC_MODE_RISING_EDGE, RTC_MODE_FALLING_EDGE } |
Functions | |
RTC_Device_t * | RTC_devRequest (void) |
Request A RTC Device. More... | |
int32_t | RTC_devInit (RTC_Device_t *dev, uint8_t mode, uint8_t div, void *cb) |
Initialize RTC 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) |
typedef const struct RTC_Device_Type RTC_Device_t |
int32_t RTC_devInit | ( | RTC_Device_t * | dev, |
uint8_t | mode, | ||
uint8_t | div, | ||
void * | cb | ||
) |
Initialize RTC Timer.
dev | The pointer to RTC device, |
mode | The enumeration of rtc timer mode. |
div | The enumeration of rtc clock divider. |
cb | The pointer to the call back function for rising or falling edge. |
RTC_Device_t* RTC_devRequest | ( | void | ) |
Request A RTC Device.
Request A RTC Device.