[][src]Struct mcp2210::Mcp2210

pub struct Mcp2210 { /* fields omitted */ }

Methods

impl Mcp2210[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Mcp2210, Mcp2210Error>[src]

pub fn spi_transfer_to_end(
    &mut self,
    data: &[u8],
    buf: &mut Vec<u8>
) -> Result<(), Mcp2210Error>
[src]

Trait Implementations

impl CommandResponse for Mcp2210[src]

fn do_command<F>(
    &mut self,
    cmd_code: u8,
    res: &mut Buffer,
    f: F
) -> Result<(), Mcp2210Error> where
    F: FnOnce(&mut Buffer), 
[src]

fn do_sub_command<F>(
    &mut self,
    cmd_code: u8,
    sub_cmd_code: u8,
    res: &mut Buffer,
    f: F
) -> Result<(), Mcp2210Error> where
    F: FnOnce(&mut Buffer), 
[src]

Auto Trait Implementations

impl Unpin for Mcp2210

impl Sync for Mcp2210

impl Send for Mcp2210

impl RefUnwindSafe for Mcp2210

impl UnwindSafe for Mcp2210

Blanket Implementations

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.

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

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

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