Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
rtc_device.h
Go to the documentation of this file.
1 
12 #ifndef __RTC_DEVICE_H__
13 #define __RTC_DEVICE_H__
14 
15 #include <stdint.h>
16 #include "hdf.h"
17 
18 enum {
22 };
23 
24 typedef const struct RTC_Device_Type RTC_Device_t;
25 typedef void (*rtc_cb_func_t)(RTC_Device_t *dev);
26 
30 typedef struct {
33  uint32_t tick_r;
34  uint32_t tick_f;
35 } RTC_State_t;
36 
43  void (*ClkDiv)(uint8_t div);
45 };
46 
53 
63 int32_t RTC_devInit(RTC_Device_t *dev, uint8_t mode, uint8_t div, void *cb);
64 
65 #endif /* __RTC_DEVICE_H__ */
uint32_t tick_r
Definition: rtc_device.h:33
rtc_cb_func_t cb_func_f
Definition: rtc_device.h:32
Definition: rtc_device.h:20
int32_t RTC_devInit(RTC_Device_t *dev, uint8_t mode, uint8_t div, void *cb)
Initialize RTC Timer.
Definition: rtc_device.c:55
void(* rtc_cb_func_t)(RTC_Device_t *dev)
Definition: rtc_device.h:25
RTC_Device_t * RTC_devRequest(void)
Request A RTC Device.
Definition: rtc_device.c:29
A structure to represent RTC device.
Definition: rtc_device.h:40
rtc_cb_func_t cb_func_r
Definition: rtc_device.h:31
A structure to represent RTC device state.
Definition: rtc_device.h:30
IRQn_Type IRQR
Definition: rtc_device.h:41
RTC_State_t * State
Definition: rtc_device.h:44
enum IRQn IRQn_Type
The enumeration of Interrupt Number Assignments.
void(* ClkDiv)(uint8_t div)
Definition: rtc_device.h:43
Definition: rtc_device.h:21
IRQn_Type IRQF
Definition: rtc_device.h:42
uint32_t tick_f
Definition: rtc_device.h:34
Definition: rtc_device.h:19