class::hal::Rtc

class hal::Rtc
  : public hal::Periph< rtc_info_t, rtc_attr_t, RtcAttributes, 'r'>

This class implements an RTC. (Not yet implemented)

Summary

Rtc(

port_t port
)

int get_time(

rtc_time_t & time
) const

int set_time(

const rtc_time_t & time
) const

enum rtc_flags

Members

Rtc(

port_t port
)


int get_time(

rtc_time_t & time
) const

Gets RTC time.


int set_time(

const rtc_time_t & time
) const

Set RTC time.


enum rtc_flags
  • ENABLE Set the alarm
  • DISABLE Set the alarm
  • IS_SOURCE_EXTERNAL_32768 External 32.768KHz Crystal
  • IS_SOURCE_INTERNAL_40000 Internal 40KHz Oscillator
  • ENABLE_ALARM Enable the alarm
  • DISABLE_ALARM Enable the alarm
  • IS_ALARM_ONCE One time alarm
  • IS_ALARM_MINUTE Alarm every minute
  • IS_ALARM_HOURLY Alarm every hour
  • IS_ALARM_DAILY Daily alarm
  • IS_ALARM_WEEKLY Weekly alarm
  • IS_ALARM_MONTHLY Monthly alarm
  • IS_ALARM_YEARLY Yearly alarm
  • ENABLE_COUNT_EVENT Enable a count event
  • IS_COUNT_SECOND One time alarm
  • IS_COUNT_MINUTE One time alarm
  • IS_COUNT_HOUR One time alarm
  • IS_COUNT_DAY_OF_WEEK One time alarm
  • IS_COUNT_DAY_OF_MONTH One time alarm
  • IS_COUNT_DAY_OF_YEAR One time alarm
  • IS_COUNT_WEEK One time alarm
  • IS_COUNT_MONTH One time alarm
  • IS_COUNT_YEAR One time alarm
  • DISABLE_COUNT_EVENT Enable a count event

X

Thanks for Coming!

Subscribe to news and updates