Struct max116xx_10bit::Max116xx10BitEocExt[][src]

pub struct Max116xx10BitEocExt<SPI, CS, EOC, CLOCKED> { /* fields omitted */ }

Implementations

Set up the ADC depending on clock and reference configuration

Set up the Averaging register. This sets the AVGON, NAVG1, NAVG0, NSCAN1 and NSCAN0 bits accordingly

Implementations when using the internal clock with a conversion started through the serial interface

Request a channel repeatedly, using scan mode 10. The number of scans is determined by the averaging register NSCAN0 and NSCAN1 configuration which can be configured with the averaging function

This function is used to retrieve the results for a single byte request. The EOC pin needs to be passed explicitely here. If no request was made, AdcError::NoPendingOperation is returned. If a request was made for multipel results, AdcError::PendingOperation will be returned.

This function is used to retrieve the results for all functions requesting multiple bytes. If no request was made, AdcError::NoPendingOperation is returned. If a request was made for a single channel, AdcError::PendingOperation will be returned.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.