Nut/OS  5.0.5
API Reference
_NUTRTC Struct Reference

RTC device structure. More...

#include <rtc.h>

Collaboration diagram for _NUTRTC:
[legend]

Data Fields

void * dcb
int(* rtc_init )(NUTRTC *rtc)
int(* rtc_gettime )(NUTRTC *rtc, struct _tm *)
int(* rtc_settime )(NUTRTC *rtc, const struct _tm *)
int(* rtc_getalarm )(NUTRTC *rtc, int idx, struct _tm *, int *)
int(* rtc_setalarm )(NUTRTC *rtc, int idx, const struct _tm *, int)
int(* rtc_getstatus )(NUTRTC *rtc, uint32_t *)
int(* rtc_clrstatus )(NUTRTC *rtc, uint32_t)
HANDLE alarm

Detailed Description

RTC device structure.


Field Documentation

void* _NUTRTC::dcb
int(* _NUTRTC::rtc_init)(NUTRTC *rtc)

Referenced by NutRegisterRtc().

int(* _NUTRTC::rtc_gettime)(NUTRTC *rtc, struct _tm *)

Referenced by NutRtcGetTime().

int(* _NUTRTC::rtc_settime)(NUTRTC *rtc, const struct _tm *)

Referenced by NutRtcSetTime().

int(* _NUTRTC::rtc_getalarm)(NUTRTC *rtc, int idx, struct _tm *, int *)

Referenced by NutRtcGetAlarm().

int(* _NUTRTC::rtc_setalarm)(NUTRTC *rtc, int idx, const struct _tm *, int)

Referenced by NutRtcSetAlarm().

Referenced by NutRtcGetStatus().


The documentation for this struct was generated from the following file: