Struct max116xx_10bit::Max116xx10Bit[][src]

pub struct Max116xx10Bit<SPI, CS, CLOCKED = ExternallyClocked, WAKEUP = WithoutWakeupDelay> { /* fields omitted */ }

Implementations

Create a new generic MAX116xx instance. By default the generated ADC struct is configured for externally clocked mode with conversions timed through the serial interface and an external voltage reference. You can convert the ADC to use other SETUP register configurations using the into* functions.

The corresponding SETUP register is 0b0111_0100 Please note that you still might have to reset and setup the ADC.

Use internal reference which is off after scan. This means that the device needs a wakeup delay

The corresponding SETUP register is 0b0111_0000

Use SPI clock as conversion clock and use the internal voltage reference without a wakeup delay

The corresponding SETUP register is 0b0111_1000

Convert into interally clocked mode with internal timing initiated by the serial interface and a wakeup delay. This can be used to reduce power consumption

The corresponding SETUP register is 0b0110_1100

Convert into interally clocked mode with internal timing initiated by the serial interface and no wakeup delay.

The corresponding SETUP register can be one of the two

  • External Voltage reference: 0b0110_0100
  • Internal Voltage reference always on: 0b0110_1000

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 external SPI clock to time the conversions

Implementations when using the external SPI clock to time the conversions but also requiring a wakeup delay

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.