pub struct DS1302<SPI, CS, CLK, const TIMER_HZ: u32> where
CLK: Delay<TIMER_HZ>, { /* fields omitted */ }
Expand description
impl<SPI, CS, E, PinError, CLK, const TIMER_HZ: u32> DS1302<SPI, CS, CLK, TIMER_HZ> where
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
CS: OutputPin<Error = PinError>,
CLK: Delay<TIMER_HZ>,
Creates new instance DS1302 RTC
Delete DS1302 RTC instance and return SPI interface and cs PIN
Return current information about seconds
Return current information about minutes
Return current information about hours
Return current information about date
Return current information about month
Return current information about year
Return current information about day of the week
Return current information about hours, minutes and seconds
Return current information about date, day of the week, month and year
Return current information date and time
Set seconds to defined value
Set minutes to defined value
Set hours to defined value
Set date to defined value
Set month to defined value
Set day of the week to defined value
Set year to defined value
Set clock to defined values
Set calendar to defined values
Set clock and calendar to defined values
Switch between 12-hour (AM/PM) and 24-hour mode
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.