File nut/include/dev/rtc.h


Included Files


Preprocessor definitions

#define _DEV_RTC_H_

#define RTC_STATUS_PF 0x00000001

#define RTC_STATUS_AL0 0x00000020

#define RTC_STATUS_AL1 0x00000040

#define RTC_ALARM_SECOND 0x00000001

#define RTC_ALARM_MINUTE 0x00000002

#define RTC_ALARM_HOUR 0x00000004

#define RTC_ALARM_MDAY 0x00000008

#define RTC_ALARM_MONTH 0x00000010

#define RTC_ALARM_WDAY 0x00000080

#define BCD2BIN( x )

#define BIN2BCD( x )


Typedef NUTRTC

typedef struct _NUTRTC NUTRTC
See: Type struct _NUTRTC

Type struct _NUTRTC

struct _NUTRTC
struct _NUTRTC  
   {  
      int (*rtc_init)(void);  
      int (*rtc_gettime)(struct _tm*);  
      int (*rtc_settime)(const struct _tm*);  
      int (*rtc_getalarm)(int idx,struct _tm*,int*);  
      int (*rtc_setalarm)(int idx,const struct _tm*,int);  
      int (*rtc_getstatus)(uint32_t*);  
      int (*rtc_clrstatus)(uint32_t);  
   }