no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
no_os_rtc.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef _NO_OS_RTC_H_
35#define _NO_OS_RTC_H_
36
37#include <stdint.h>
38
45 uint8_t id;
47 uint32_t freq;
49 uint32_t load;
51 void *extra;
52};
53
60 uint8_t id;
62 uint32_t freq;
64 uint32_t load;
66 void *extra;
67};
68
70int32_t no_os_rtc_init(struct no_os_rtc_desc **device,
72
74int32_t no_os_rtc_remove(struct no_os_rtc_desc *dev);
75
77int32_t no_os_rtc_start(struct no_os_rtc_desc *dev);
78
80int32_t no_os_rtc_stop(struct no_os_rtc_desc *dev);
81
83int32_t no_os_rtc_get_cnt(struct no_os_rtc_desc *dev, uint32_t *tmr_cnt);
84
86int32_t no_os_rtc_set_cnt(struct no_os_rtc_desc *dev, uint32_t tmr_cnt);
87
89int32_t no_os_rtc_set_irq_time(struct no_os_rtc_desc *dev, uint32_t irq_time);
90
91#endif // _NO_OS_RTC_H_
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int32_t no_os_rtc_set_cnt(struct no_os_rtc_desc *dev, uint32_t tmr_cnt)
Set the current count for the real time clock.
Definition aducm3029_rtc.c:176
int32_t no_os_rtc_init(struct no_os_rtc_desc **device, struct no_os_rtc_init_param *init_param)
Initialize the RTC peripheral.
Definition aducm3029_rtc.c:47
int32_t no_os_rtc_stop(struct no_os_rtc_desc *dev)
Stop the real time clock.
Definition aducm3029_rtc.c:146
int32_t no_os_rtc_remove(struct no_os_rtc_desc *dev)
Free the resources allocated by no_os_rtc_init().
Definition aducm3029_rtc.c:109
int32_t no_os_rtc_get_cnt(struct no_os_rtc_desc *dev, uint32_t *tmr_cnt)
Get the current count for the real time clock.
Definition aducm3029_rtc.c:163
int32_t no_os_rtc_set_irq_time(struct no_os_rtc_desc *dev, uint32_t irq_time)
Set the current count for the real time clock.
Definition maxim_rtc.c:179
int32_t no_os_rtc_start(struct no_os_rtc_desc *dev)
Start the real time clock.
Definition aducm3029_rtc.c:130
Definition ad9361_util.h:63
Structure holding RTC descriptor.
Definition no_os_rtc.h:43
uint32_t load
Definition no_os_rtc.h:49
uint32_t freq
Definition no_os_rtc.h:47
uint8_t id
Definition no_os_rtc.h:45
void * extra
Definition no_os_rtc.h:51
Structure holding RTC initialization parameters.
Definition no_os_rtc.h:58
void * extra
Definition no_os_rtc.h:66
uint8_t id
Definition no_os_rtc.h:60
uint32_t load
Definition no_os_rtc.h:64
uint32_t freq
Definition no_os_rtc.h:62