Crate max116xx_10bit[][src]

Expand description

Type-Safe API to use the MAX116xx 10-bit ADC devices

Usage

You can create an initial ADC struct by using the Max116xx10Bit::max11618, Max116xx10Bit::max11619, Max116xx10Bit::max11620, Max116xx10Bit::max11621, Max116xx10Bit::max11624 and Max116xx10Bit::max11625 functionsdepending on which device you are using. This automatically sets the highest channel number accordingly.

The default structs use the externally clocked mode with an external voltage reference. You can modify the operation mode of the ADC by converting the default struct using the following functions

Examples

You can find an example application here using a thin abstraction layer

Structs

Enums

Specifies how many conversions are performed and then averaged for each requested result

Specifies the number of returned result in single scan mode

Clock modes for the MAX116XX devices

Voltage reference modes

Traits