[−][src]Struct mcp3xxx::Mcp3302
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]
&mut self,
plus_channel: Channel,
minus_channel: Channel
) -> Result<Reading>
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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,