Struct sd2405al::Sd2405al [−][src]
Sd2405al driver
Implementations
impl<I2C, E> Sd2405al<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
[src]
I2C: Write<Error = E> + WriteRead<Error = E>,
pub fn new(i2c: I2C) -> Self
[src]
Create a new instance
pub fn destroy(self) -> I2C
[src]
Destroy and return ownership of I2C
Trait Implementations
impl<I2C: Debug> Debug for Sd2405al<I2C>
[src]
impl<I2C: Default> Default for Sd2405al<I2C>
[src]
impl<I2C, E> Rtcc for Sd2405al<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
[src]
I2C: Write<Error = E> + WriteRead<Error = E>,
type Error = Error<E>
Error type
fn get_seconds(&mut self) -> Result<u8, Self::Error>
[src]
fn get_minutes(&mut self) -> Result<u8, Self::Error>
[src]
fn get_hours(&mut self) -> Result<Hours, Self::Error>
[src]
fn get_time(&mut self) -> Result<NaiveTime, Self::Error>
[src]
fn get_weekday(&mut self) -> Result<u8, Self::Error>
[src]
fn get_day(&mut self) -> Result<u8, Self::Error>
[src]
fn get_month(&mut self) -> Result<u8, Self::Error>
[src]
fn get_year(&mut self) -> Result<u16, Self::Error>
[src]
fn get_date(&mut self) -> Result<NaiveDate, Self::Error>
[src]
fn get_datetime(&mut self) -> Result<NaiveDateTime, Self::Error>
[src]
fn set_seconds(&mut self, _seconds: u8) -> Result<(), Self::Error>
[src]
fn set_minutes(&mut self, _minutes: u8) -> Result<(), Self::Error>
[src]
fn set_hours(&mut self, _hours: Hours) -> Result<(), Self::Error>
[src]
fn set_time(&mut self, _time: &NaiveTime) -> Result<(), Self::Error>
[src]
fn set_weekday(&mut self, _weekday: u8) -> Result<(), Self::Error>
[src]
fn set_day(&mut self, _day: u8) -> Result<(), Self::Error>
[src]
fn set_month(&mut self, _month: u8) -> Result<(), Self::Error>
[src]
fn set_year(&mut self, _year: u16) -> Result<(), Self::Error>
[src]
fn set_date(&mut self, _date: &NaiveDate) -> Result<(), Self::Error>
[src]
fn set_datetime(&mut self, datetime: &NaiveDateTime) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<I2C> RefUnwindSafe for Sd2405al<I2C> where
I2C: RefUnwindSafe,
I2C: RefUnwindSafe,
impl<I2C> Send for Sd2405al<I2C> where
I2C: Send,
I2C: Send,
impl<I2C> Sync for Sd2405al<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for Sd2405al<I2C> where
I2C: Unpin,
I2C: Unpin,
impl<I2C> UnwindSafe for Sd2405al<I2C> where
I2C: UnwindSafe,
I2C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,