embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Module rtc

Module rtc 

Source
Expand description

RTC DateTime driver.

Structs§

InterruptHandler
RTC interrupt handler.
Rtc
Minimal RTC handle for a specific instance I (store the zero-sized token like embassy)
RtcConfig
RtcDateTime
Date and time structure for RTC operations
RtcInterruptEnable
RTC interrupt enable flags

Traits§

Instance
Trait for RTC peripheral instances

Functions§

convert_datetime_to_seconds
Converts a DateTime structure to Unix timestamp (seconds since 1970-01-01)
convert_seconds_to_datetime
Converts Unix timestamp to DateTime structure
get_default_config
Returns default RTC configuration

Type Aliases§

Rtc0
Token for RTC0