[][src]Struct mcp795xx::Mcp795xx

pub struct Mcp795xx<SPI, CS> { /* fields omitted */ }

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]

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

impl<SPI, CS> Sync for Mcp795xx<SPI, CS> where
    CS: Sync,
    SPI: Sync

impl<SPI, CS> Unpin for Mcp795xx<SPI, CS> where
    CS: Unpin,
    SPI: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.