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
Max116xx10Bit::into_ext_clkd_with_int_ref_no_wakeup_delayMax116xx10Bit::into_ext_clkd_with_int_ref_wakeup_delayMax116xx10Bit::into_int_clkd_int_timed_through_ser_if_with_wakeupMax116xx10Bit::into_int_clkd_int_timed_through_ser_if_without_wakeup
§Examples
You can find an example application here using a thin abstraction layer
Structs§
- Externally
Clocked - Internally
Clocked Externally Timed Cnvst - Internally
Clocked Internally Timed Cnvst - Internally
Clocked Internally Timed Serial Interface - Max116xx10
Bit - Max116xx10
BitCnvst EocExt - Max116xx10
BitEoc Ext - With
Wakeup Delay - Without
Wakeup Delay
Enums§
- AdcError
- Averaging
Conversions - Specifies how many conversions are performed and then averaged for each requested result
- Averaging
Results - Specifies the number of returned result in single scan mode
- Clock
Mode - Clock modes for the MAX116XX devices
- Error
- Scan
Mode - Voltage
RefMode - Voltage reference modes