Crate max116xx_10bit

Source
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 functions depending 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§

ExternallyClocked
InternallyClockedExternallyTimedCnvst
InternallyClockedInternallyTimedCnvst
InternallyClockedInternallyTimedSerialInterface
Max116xx10Bit
Max116xx10BitCnvstEocExt
Max116xx10BitEocExt
WithWakeupDelay
WithoutWakeupDelay

Enums§

AdcError
AveragingConversions
Specifies how many conversions are performed and then averaged for each requested result
AveragingResults
Specifies the number of returned result in single scan mode
ClockMode
Clock modes for the MAX116XX devices
Error
ScanMode
VoltageRefMode
Voltage reference modes

Traits§

ClockedProvider
HasChannels
InternallyClocked
WakeupDelay