[][src]Struct nau7802::Nau7802

pub struct Nau7802<D: Read + Write> { /* fields omitted */ }

Implementations

impl<D: Read + Write> Nau7802<D>[src]

pub fn new(i2c_dev: D) -> Result<Self>[src]

pub fn new_with_settings(
    i2c_dev: D,
    ldo: Ldo,
    gain: Gain,
    sps: SamplesPerSecond
) -> Result<Self>
[src]

pub fn destroy(self) -> D[src]

pub fn data_available(&mut self) -> Result<bool>[src]

pub fn read(&mut self) -> Result<i32, Error>[src]

Checks for new data, returns nb::Error::WouldBlock if unavailable

pub fn read_unchecked(&mut self) -> Result<i32>[src]

assumes that data_avaiable has been called and returned true

pub fn begin_afe_calibration(&mut self) -> Result<()>[src]

pub fn poll_afe_calibration_status(&mut self) -> Result<AfeCalibrationStatus>[src]

pub fn set_sample_rate(&mut self, sps: SamplesPerSecond) -> Result<()>[src]

pub fn set_gain(&mut self, gain: Gain) -> Result<()>[src]

pub fn set_ldo(&mut self, ldo: Ldo) -> Result<()>[src]

pub fn power_up(&mut self) -> Result<()>[src]

pub fn start_reset(&mut self) -> Result<()>[src]

pub fn finish_reset(&mut self) -> Result<()>[src]

pub fn misc_init(&mut self) -> Result<()>[src]

Auto Trait Implementations

impl<D> Send for Nau7802<D> where
    D: Send

impl<D> Sync for Nau7802<D> where
    D: Sync

impl<D> Unpin for Nau7802<D> where
    D: 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.