[−][src]Struct mcp795xx::Mcp795xx
MCP795xx Driver
Methods
impl<SPI, CS, E1, E2> Mcp795xx<SPI, CS> where
SPI: Transfer<u8, Error = E1> + Write<u8, Error = E1>,
CS: OutputPin<Error = E2>,
E1: Debug,
E2: Debug,
[src]
SPI: Transfer<u8, Error = E1> + Write<u8, Error = E1>,
CS: OutputPin<Error = E2>,
E1: Debug,
E2: Debug,
pub fn new(spi: SPI, cs: CS) -> Self
[src]
pub fn enable_oscillator(&mut self)
[src]
pub fn enable_vbat(&mut self)
[src]
pub fn get_time(&mut self) -> DateTime
[src]
pub fn set_time(&mut self, datetime: DateTime)
[src]
Auto Trait Implementations
impl<SPI, CS> Send for Mcp795xx<SPI, CS> where
CS: Send,
SPI: Send,
CS: Send,
SPI: Send,
impl<SPI, CS> Sync for Mcp795xx<SPI, CS> where
CS: Sync,
SPI: Sync,
CS: Sync,
SPI: Sync,
impl<SPI, CS> Unpin for Mcp795xx<SPI, CS> where
CS: Unpin,
SPI: Unpin,
CS: Unpin,
SPI: Unpin,
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,
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.
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>,