pub struct Rtc { /* private fields */ }
Expand description

RTC Abstraction

Implementations

Get date and time touple

Set Date and Time

Set Time Note: If setting both time and date, use set_date_time(…) to avoid errors.

Set Date Note: If setting both time and date, use set_date_time(…) to avoid errors.

Sets the time at which an alarm will be triggered This also clears the alarm flag if it is set

Starts listening for an interrupt event

Stops listening for an interrupt event

Checks for an interrupt event

Applies the RTC config It this changes the RTC clock source the time will be reset

Access the wakeup timer

Read content of the backup register.

The registers retain their values during wakes from standby mode or system resets. They also retain their value when Vdd is switched off as long as V_BAT is powered.

Set content of the backup register.

The registers retain their values during wakes from standby mode or system resets. They also retain their value when Vdd is switched off as long as V_BAT is powered.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.