[][src]Struct mcp3xxx::Mcp3302

pub struct Mcp3302 { /* fields omitted */ }

MCP3302 13-bit 4-channel A/D converter.

Methods

impl Mcp3302[src]

pub fn new(spi: Spi) -> Result<Self>[src]

pub fn single_ended_read(&mut self, channel: Channel) -> Result<Reading>[src]

One-off measurement of a single channel.

pub fn differential_read(
    &mut self,
    plus_channel: Channel,
    minus_channel: Channel
) -> Result<Reading>
[src]

One-off pseudo-differential measurement of two (plus & minus) channels.

Auto Trait Implementations

impl Unpin for Mcp3302

impl !Sync for Mcp3302

impl Send for Mcp3302

impl RefUnwindSafe for Mcp3302

impl UnwindSafe for Mcp3302

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]