Struct rtc#
Defined in File rtc.h
Struct Documentation#
-
struct rtc#
Register block to control RTC
Public Functions
-
inline uint16_t get_CLKDIV_M1_CLKDIV_M1() volatile#
Get CLKDIV_M1’s CLKDIV_M1 field.
-
inline void set_CLKDIV_M1_CLKDIV_M1(uint16_t value) volatile#
Set CLKDIV_M1’s CLKDIV_M1 field.
-
inline uint8_t get_SETUP_0_DAY() volatile#
Get SETUP_0’s DAY field.
Day of the month (1..31)
-
inline void set_SETUP_0_DAY(uint8_t value) volatile#
Set SETUP_0’s DAY field.
Day of the month (1..31)
-
inline uint8_t get_SETUP_0_MONTH() volatile#
Get SETUP_0’s MONTH field.
Month (1..12)
-
inline void set_SETUP_0_MONTH(uint8_t value) volatile#
Set SETUP_0’s MONTH field.
Month (1..12)
-
inline uint16_t get_SETUP_0_YEAR() volatile#
Get SETUP_0’s YEAR field.
Year
-
inline void set_SETUP_0_YEAR(uint16_t value) volatile#
Set SETUP_0’s YEAR field.
Year
-
inline void get_SETUP_0(uint8_t &DAY, uint8_t &MONTH, uint16_t &YEAR) volatile#
Get all of SETUP_0’s bit fields.
(read-write) RTC setup register 0
-
inline void set_SETUP_0(uint8_t DAY, uint8_t MONTH, uint16_t YEAR) volatile#
Set all of SETUP_0’s bit fields.
(read-write) RTC setup register 0
-
inline uint8_t get_SETUP_1_SEC() volatile#
Get SETUP_1’s SEC field.
Seconds
-
inline void set_SETUP_1_SEC(uint8_t value) volatile#
Set SETUP_1’s SEC field.
Seconds
-
inline uint8_t get_SETUP_1_MIN() volatile#
Get SETUP_1’s MIN field.
Minutes
-
inline void set_SETUP_1_MIN(uint8_t value) volatile#
Set SETUP_1’s MIN field.
Minutes
-
inline uint8_t get_SETUP_1_HOUR() volatile#
Get SETUP_1’s HOUR field.
Hours
-
inline void set_SETUP_1_HOUR(uint8_t value) volatile#
Set SETUP_1’s HOUR field.
Hours
-
inline uint8_t get_SETUP_1_DOTW() volatile#
Get SETUP_1’s DOTW field.
Day of the week: 1-Monday…0-Sunday ISO 8601 mod 7
-
inline void set_SETUP_1_DOTW(uint8_t value) volatile#
Set SETUP_1’s DOTW field.
Day of the week: 1-Monday…0-Sunday ISO 8601 mod 7
-
inline void get_SETUP_1(uint8_t &SEC, uint8_t &MIN, uint8_t &HOUR, uint8_t &DOTW) volatile#
Get all of SETUP_1’s bit fields.
(read-write) RTC setup register 1
-
inline void set_SETUP_1(uint8_t SEC, uint8_t MIN, uint8_t HOUR, uint8_t DOTW) volatile#
Set all of SETUP_1’s bit fields.
(read-write) RTC setup register 1
-
inline bool get_CTRL_RTC_ENABLE() volatile#
Get CTRL’s RTC_ENABLE bit.
Enable RTC
-
inline void set_CTRL_RTC_ENABLE() volatile#
Set CTRL’s RTC_ENABLE bit.
Enable RTC
-
inline void clear_CTRL_RTC_ENABLE() volatile#
Clear CTRL’s RTC_ENABLE bit.
Enable RTC
-
inline void toggle_CTRL_RTC_ENABLE() volatile#
Toggle CTRL’s RTC_ENABLE bit.
Enable RTC
-
inline bool get_CTRL_RTC_ACTIVE() volatile#
Get CTRL’s RTC_ACTIVE bit.
RTC enabled (running)
-
inline bool get_CTRL_LOAD() volatile#
Get CTRL’s LOAD bit.
Load RTC
-
inline void set_CTRL_LOAD() volatile#
Set CTRL’s LOAD bit.
Load RTC
-
inline void clear_CTRL_LOAD() volatile#
Clear CTRL’s LOAD bit.
Load RTC
-
inline void toggle_CTRL_LOAD() volatile#
Toggle CTRL’s LOAD bit.
Load RTC
-
inline bool get_CTRL_FORCE_NOTLEAPYEAR() volatile#
Get CTRL’s FORCE_NOTLEAPYEAR bit.
If set, leapyear is forced off.
Useful for years divisible by 100 but not by 400
-
inline void set_CTRL_FORCE_NOTLEAPYEAR() volatile#
Set CTRL’s FORCE_NOTLEAPYEAR bit.
If set, leapyear is forced off.
Useful for years divisible by 100 but not by 400
-
inline void clear_CTRL_FORCE_NOTLEAPYEAR() volatile#
Clear CTRL’s FORCE_NOTLEAPYEAR bit.
If set, leapyear is forced off.
Useful for years divisible by 100 but not by 400
-
inline void toggle_CTRL_FORCE_NOTLEAPYEAR() volatile#
Toggle CTRL’s FORCE_NOTLEAPYEAR bit.
If set, leapyear is forced off.
Useful for years divisible by 100 but not by 400
-
inline void get_CTRL(bool &RTC_ENABLE, bool &RTC_ACTIVE, bool &LOAD, bool &FORCE_NOTLEAPYEAR) volatile#
Get all of CTRL’s bit fields.
(read-write) RTC Control and status
-
inline void set_CTRL(bool RTC_ENABLE, bool LOAD, bool FORCE_NOTLEAPYEAR) volatile#
Set all of CTRL’s bit fields.
(read-write) RTC Control and status
-
inline uint8_t get_IRQ_SETUP_0_DAY() volatile#
Get IRQ_SETUP_0’s DAY field.
Day of the month (1..31)
-
inline void set_IRQ_SETUP_0_DAY(uint8_t value) volatile#
Set IRQ_SETUP_0’s DAY field.
Day of the month (1..31)
-
inline uint8_t get_IRQ_SETUP_0_MONTH() volatile#
Get IRQ_SETUP_0’s MONTH field.
Month (1..12)
-
inline void set_IRQ_SETUP_0_MONTH(uint8_t value) volatile#
Set IRQ_SETUP_0’s MONTH field.
Month (1..12)
-
inline uint16_t get_IRQ_SETUP_0_YEAR() volatile#
Get IRQ_SETUP_0’s YEAR field.
Year
-
inline void set_IRQ_SETUP_0_YEAR(uint16_t value) volatile#
Set IRQ_SETUP_0’s YEAR field.
Year
-
inline bool get_IRQ_SETUP_0_DAY_ENA() volatile#
Get IRQ_SETUP_0’s DAY_ENA bit.
Enable day matching
-
inline void set_IRQ_SETUP_0_DAY_ENA() volatile#
Set IRQ_SETUP_0’s DAY_ENA bit.
Enable day matching
-
inline void clear_IRQ_SETUP_0_DAY_ENA() volatile#
Clear IRQ_SETUP_0’s DAY_ENA bit.
Enable day matching
-
inline void toggle_IRQ_SETUP_0_DAY_ENA() volatile#
Toggle IRQ_SETUP_0’s DAY_ENA bit.
Enable day matching
-
inline bool get_IRQ_SETUP_0_MONTH_ENA() volatile#
Get IRQ_SETUP_0’s MONTH_ENA bit.
Enable month matching
-
inline void set_IRQ_SETUP_0_MONTH_ENA() volatile#
Set IRQ_SETUP_0’s MONTH_ENA bit.
Enable month matching
-
inline void clear_IRQ_SETUP_0_MONTH_ENA() volatile#
Clear IRQ_SETUP_0’s MONTH_ENA bit.
Enable month matching
-
inline void toggle_IRQ_SETUP_0_MONTH_ENA() volatile#
Toggle IRQ_SETUP_0’s MONTH_ENA bit.
Enable month matching
-
inline bool get_IRQ_SETUP_0_YEAR_ENA() volatile#
Get IRQ_SETUP_0’s YEAR_ENA bit.
Enable year matching
-
inline void set_IRQ_SETUP_0_YEAR_ENA() volatile#
Set IRQ_SETUP_0’s YEAR_ENA bit.
Enable year matching
-
inline void clear_IRQ_SETUP_0_YEAR_ENA() volatile#
Clear IRQ_SETUP_0’s YEAR_ENA bit.
Enable year matching
-
inline void toggle_IRQ_SETUP_0_YEAR_ENA() volatile#
Toggle IRQ_SETUP_0’s YEAR_ENA bit.
Enable year matching
-
inline bool get_IRQ_SETUP_0_MATCH_ENA() volatile#
Get IRQ_SETUP_0’s MATCH_ENA bit.
Global match enable. Don’t change any other value while this one is enabled
-
inline void set_IRQ_SETUP_0_MATCH_ENA() volatile#
Set IRQ_SETUP_0’s MATCH_ENA bit.
Global match enable. Don’t change any other value while this one is enabled
-
inline void clear_IRQ_SETUP_0_MATCH_ENA() volatile#
Clear IRQ_SETUP_0’s MATCH_ENA bit.
Global match enable. Don’t change any other value while this one is enabled
-
inline void toggle_IRQ_SETUP_0_MATCH_ENA() volatile#
Toggle IRQ_SETUP_0’s MATCH_ENA bit.
Global match enable. Don’t change any other value while this one is enabled
-
inline bool get_IRQ_SETUP_0_MATCH_ACTIVE() volatile#
Get IRQ_SETUP_0’s MATCH_ACTIVE bit.
-
inline void get_IRQ_SETUP_0(uint8_t &DAY, uint8_t &MONTH, uint16_t &YEAR, bool &DAY_ENA, bool &MONTH_ENA, bool &YEAR_ENA, bool &MATCH_ENA, bool &MATCH_ACTIVE) volatile#
Get all of IRQ_SETUP_0’s bit fields.
(read-write) Interrupt setup register 0
-
inline void set_IRQ_SETUP_0(uint8_t DAY, uint8_t MONTH, uint16_t YEAR, bool DAY_ENA, bool MONTH_ENA, bool YEAR_ENA, bool MATCH_ENA) volatile#
Set all of IRQ_SETUP_0’s bit fields.
(read-write) Interrupt setup register 0
-
inline uint8_t get_IRQ_SETUP_1_SEC() volatile#
Get IRQ_SETUP_1’s SEC field.
Seconds
-
inline void set_IRQ_SETUP_1_SEC(uint8_t value) volatile#
Set IRQ_SETUP_1’s SEC field.
Seconds
-
inline uint8_t get_IRQ_SETUP_1_MIN() volatile#
Get IRQ_SETUP_1’s MIN field.
Minutes
-
inline void set_IRQ_SETUP_1_MIN(uint8_t value) volatile#
Set IRQ_SETUP_1’s MIN field.
Minutes
-
inline uint8_t get_IRQ_SETUP_1_HOUR() volatile#
Get IRQ_SETUP_1’s HOUR field.
Hours
-
inline void set_IRQ_SETUP_1_HOUR(uint8_t value) volatile#
Set IRQ_SETUP_1’s HOUR field.
Hours
-
inline uint8_t get_IRQ_SETUP_1_DOTW() volatile#
Get IRQ_SETUP_1’s DOTW field.
Day of the week
-
inline void set_IRQ_SETUP_1_DOTW(uint8_t value) volatile#
Set IRQ_SETUP_1’s DOTW field.
Day of the week
-
inline bool get_IRQ_SETUP_1_SEC_ENA() volatile#
Get IRQ_SETUP_1’s SEC_ENA bit.
Enable second matching
-
inline void set_IRQ_SETUP_1_SEC_ENA() volatile#
Set IRQ_SETUP_1’s SEC_ENA bit.
Enable second matching
-
inline void clear_IRQ_SETUP_1_SEC_ENA() volatile#
Clear IRQ_SETUP_1’s SEC_ENA bit.
Enable second matching
-
inline void toggle_IRQ_SETUP_1_SEC_ENA() volatile#
Toggle IRQ_SETUP_1’s SEC_ENA bit.
Enable second matching
-
inline bool get_IRQ_SETUP_1_MIN_ENA() volatile#
Get IRQ_SETUP_1’s MIN_ENA bit.
Enable minute matching
-
inline void set_IRQ_SETUP_1_MIN_ENA() volatile#
Set IRQ_SETUP_1’s MIN_ENA bit.
Enable minute matching
-
inline void clear_IRQ_SETUP_1_MIN_ENA() volatile#
Clear IRQ_SETUP_1’s MIN_ENA bit.
Enable minute matching
-
inline void toggle_IRQ_SETUP_1_MIN_ENA() volatile#
Toggle IRQ_SETUP_1’s MIN_ENA bit.
Enable minute matching
-
inline bool get_IRQ_SETUP_1_HOUR_ENA() volatile#
Get IRQ_SETUP_1’s HOUR_ENA bit.
Enable hour matching
-
inline void set_IRQ_SETUP_1_HOUR_ENA() volatile#
Set IRQ_SETUP_1’s HOUR_ENA bit.
Enable hour matching
-
inline void clear_IRQ_SETUP_1_HOUR_ENA() volatile#
Clear IRQ_SETUP_1’s HOUR_ENA bit.
Enable hour matching
-
inline void toggle_IRQ_SETUP_1_HOUR_ENA() volatile#
Toggle IRQ_SETUP_1’s HOUR_ENA bit.
Enable hour matching
-
inline bool get_IRQ_SETUP_1_DOTW_ENA() volatile#
Get IRQ_SETUP_1’s DOTW_ENA bit.
Enable day of the week matching
-
inline void set_IRQ_SETUP_1_DOTW_ENA() volatile#
Set IRQ_SETUP_1’s DOTW_ENA bit.
Enable day of the week matching
-
inline void clear_IRQ_SETUP_1_DOTW_ENA() volatile#
Clear IRQ_SETUP_1’s DOTW_ENA bit.
Enable day of the week matching
-
inline void toggle_IRQ_SETUP_1_DOTW_ENA() volatile#
Toggle IRQ_SETUP_1’s DOTW_ENA bit.
Enable day of the week matching
-
inline void get_IRQ_SETUP_1(uint8_t &SEC, uint8_t &MIN, uint8_t &HOUR, uint8_t &DOTW, bool &SEC_ENA, bool &MIN_ENA, bool &HOUR_ENA, bool &DOTW_ENA) volatile#
Get all of IRQ_SETUP_1’s bit fields.
(read-write) Interrupt setup register 1
-
inline void set_IRQ_SETUP_1(uint8_t SEC, uint8_t MIN, uint8_t HOUR, uint8_t DOTW, bool SEC_ENA, bool MIN_ENA, bool HOUR_ENA, bool DOTW_ENA) volatile#
Set all of IRQ_SETUP_1’s bit fields.
(read-write) Interrupt setup register 1
-
inline uint8_t get_RTC_1_DAY() volatile#
Get RTC_1’s DAY field.
Day of the month (1..31)
-
inline uint8_t get_RTC_1_MONTH() volatile#
Get RTC_1’s MONTH field.
Month (1..12)
-
inline uint16_t get_RTC_1_YEAR() volatile#
Get RTC_1’s YEAR field.
Year
-
inline void get_RTC_1(uint8_t &DAY, uint8_t &MONTH, uint16_t &YEAR) volatile#
Get all of RTC_1’s bit fields.
(read-only) RTC register 1.
-
inline uint8_t get_RTC_0_SEC() volatile#
Get RTC_0’s SEC field.
Seconds
-
inline uint8_t get_RTC_0_MIN() volatile#
Get RTC_0’s MIN field.
Minutes
-
inline uint8_t get_RTC_0_HOUR() volatile#
Get RTC_0’s HOUR field.
Hours
-
inline uint8_t get_RTC_0_DOTW() volatile#
Get RTC_0’s DOTW field.
Day of the week
-
inline void get_RTC_0(uint8_t &SEC, uint8_t &MIN, uint8_t &HOUR, uint8_t &DOTW) volatile#
Get all of RTC_0’s bit fields.
(read-only) RTC register 0
Read this before RTC 1!
-
inline bool get_INTR_RTC() volatile#
Get INTR’s RTC bit.
-
inline bool get_INTE_RTC() volatile#
Get INTE’s RTC bit.
-
inline void set_INTE_RTC() volatile#
Set INTE’s RTC bit.
-
inline void clear_INTE_RTC() volatile#
Clear INTE’s RTC bit.
-
inline void toggle_INTE_RTC() volatile#
Toggle INTE’s RTC bit.
-
inline bool get_INTF_RTC() volatile#
Get INTF’s RTC bit.
-
inline void set_INTF_RTC() volatile#
Set INTF’s RTC bit.
-
inline void clear_INTF_RTC() volatile#
Clear INTF’s RTC bit.
-
inline void toggle_INTF_RTC() volatile#
Toggle INTF’s RTC bit.
-
inline bool get_INTS_RTC() volatile#
Get INTS’s RTC bit.
Public Members
-
uint32_t CLKDIV_M1#
(read-write) Divider minus 1 for the 1 second counter. Safe to change the value when RTC is not enabled.
-
uint32_t SETUP_0#
(read-write) RTC setup register 0
-
uint32_t SETUP_1#
(read-write) RTC setup register 1
-
uint32_t CTRL#
(read-write) RTC Control and status
-
uint32_t IRQ_SETUP_0#
(read-write) Interrupt setup register 0
-
uint32_t IRQ_SETUP_1#
(read-write) Interrupt setup register 1
-
const uint32_t RTC_1 = {}#
(read-only) RTC register 1.
-
const uint32_t RTC_0 = {}#
(read-only) RTC register 0
Read this before RTC 1!
-
const uint32_t INTR = {}#
(read-only) Raw Interrupts
-
uint32_t INTE#
(read-write) Interrupt Enable
-
uint32_t INTF#
(read-write) Interrupt Force
-
const uint32_t INTS = {}#
(read-only) Interrupt status after masking & forcing
Public Static Attributes
-
static constexpr std::size_t size = 48#
rtc’s size in bytes.
-
inline uint16_t get_CLKDIV_M1_CLKDIV_M1() volatile#