no-OS
aducm3029_rtc.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef ADUCM3029_RTC_H_
35 #define ADUCM3029_RTC_H_
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include <drivers/rtc/adi_rtc.h>
42 
43 /******************************************************************************/
44 /*************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
68 };
69 
76  void *instance;
78  void *memory;
79 };
80 
81 #endif /* ADUCM3029_RTC_H_ */
aducm_rtc_desc::memory
void * memory
Definition: aducm3029_rtc.h:78
AUDCM_256HZ
@ AUDCM_256HZ
Definition: aducm3029_rtc.h:59
no_os_alloc.h
aducm_rtc_desc
Structure holding ADuCM3029 specific RTC descriptor.
Definition: aducm3029_rtc.h:74
AUDCM_2048HZ
@ AUDCM_2048HZ
Definition: aducm3029_rtc.h:56
AUDCM_32HZ
@ AUDCM_32HZ
Definition: aducm3029_rtc.h:62
AUDCM_16384HZ
@ AUDCM_16384HZ
Definition: aducm3029_rtc.h:53
no_os_irq.h
Header file of IRQ interface.
AUDCM_4HZ
@ AUDCM_4HZ
Definition: aducm3029_rtc.h:65
no_os_rtc_init_param
Structure holding RTC initialization parameters.
Definition: no_os_rtc.h:66
device
Definition: ad9361_util.h:69
AUDCM_64HZ
@ AUDCM_64HZ
Definition: aducm3029_rtc.h:61
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
no_os_rtc_get_cnt
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:171
AUDCM_512HZ
@ AUDCM_512HZ
Definition: aducm3029_rtc.h:58
no_os_rtc_desc::extra
void * extra
Definition: no_os_rtc.h:59
aducm_rtc_freq_opt
aducm_rtc_freq_opt
RTC nominal frequency options for ADuCM3029.
Definition: aducm3029_rtc.h:51
no_os_rtc_desc::load
uint32_t load
Definition: no_os_rtc.h:57
no_os_rtc_init
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:55
AUDCM_128HZ
@ AUDCM_128HZ
Definition: aducm3029_rtc.h:60
no_os_error.h
Error codes definition.
AUDCM_32768HZ
@ AUDCM_32768HZ
Definition: aducm3029_rtc.h:52
no_os_rtc_stop
int32_t no_os_rtc_stop(struct no_os_rtc_desc *dev)
Stop the real time clock.
Definition: aducm3029_rtc.c:154
aducm3029_rtc.h
Header file of RTC driver for ADuCM302x.
no_os_rtc_set_cnt
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:184
no_os_rtc_desc
Structure holding RTC descriptor.
Definition: no_os_rtc.h:51
no_os_rtc_remove
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:117
no_os_rtc.h
Header of the RTC interface.
AUDCM_2HZ
@ AUDCM_2HZ
Definition: aducm3029_rtc.h:66
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
AUDCM_4096HZ
@ AUDCM_4096HZ
Definition: aducm3029_rtc.h:55
AUDCM_1HZ
@ AUDCM_1HZ
Definition: aducm3029_rtc.h:67
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
AUDCM_8HZ
@ AUDCM_8HZ
Definition: aducm3029_rtc.h:64
no_os_rtc_start
int32_t no_os_rtc_start(struct no_os_rtc_desc *dev)
Start the real time clock.
Definition: aducm3029_rtc.c:138
AUDCM_8192HZ
@ AUDCM_8192HZ
Definition: aducm3029_rtc.h:54
aducm_rtc_desc::instance
void * instance
Definition: aducm3029_rtc.h:76
AUDCM_1024HZ
@ AUDCM_1024HZ
Definition: aducm3029_rtc.h:57
no_os_rtc_desc::id
uint8_t id
Definition: no_os_rtc.h:53
no_os_rtc_desc::freq
uint32_t freq
Definition: no_os_rtc.h:55
AUDCM_16HZ
@ AUDCM_16HZ
Definition: aducm3029_rtc.h:63