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
Max116xx10Bit::into_ext_clkd_with_int_ref_no_wakeup_delay
Max116xx10Bit::into_ext_clkd_with_int_ref_wakeup_delay
Max116xx10Bit::into_int_clkd_int_timed_through_ser_if_with_wakeup
Max116xx10Bit::into_int_clkd_int_timed_through_ser_if_without_wakeup
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