Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Functions | Variables
rtc_device.c File Reference
#include "rtc_device.h"
#include "errno.h"

Functions

RTC_Device_tRTC_devRequest (void)
 The instance of RTC device. More...
 
void RTC_FE_Handler (void)
 
void RTC_RE_Handler (void)
 
int32_t RTC_devInit (RTC_Device_t *dev, uint8_t mode, uint8_t div, void *cb)
 Initialize RTC Timer. More...
 

Variables

RTC_State_t RTC_State
 

Detailed Description

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.

Function Documentation

int32_t RTC_devInit ( RTC_Device_t dev,
uint8_t  mode,
uint8_t  div,
void *  cb 
)

Initialize RTC Timer.

Parameters
devThe pointer to RTC device,
modeThe enumeration of rtc timer mode.
divThe enumeration of rtc clock divider.
cbThe pointer to the call back function for rising or falling edge.
Returns
0 for success or error code upon a failure.
RTC_Device_t* RTC_devRequest ( void  )

The instance of RTC device.

Request A RTC Device.

void RTC_FE_Handler ( void  )
void RTC_RE_Handler ( void  )

Variable Documentation

RTC_State_t RTC_State
Initial value:
=
{
.cb_func_r = NULL, .cb_func_f = NULL, .tick_r = 0, .tick_f = 0,
}