Struct max116xx_10bit::Max116xx10BitCnvstEocExt [−][src]
pub struct Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, CLOCKED, WAKEUP = WithoutWakeupDelay> { /* fields omitted */ }
Implementations
impl<SpiE, PinE, CS, SPI, EOC, CNVST, CLOCKED: Clocked, DELAY> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, CLOCKED, DELAY> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
impl<SpiE, PinE, CS, SPI, EOC, CNVST, CLOCKED: Clocked, DELAY> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, CLOCKED, DELAY> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
Set up the ADC depending on clock and reference configuration
pub fn averaging(
&mut self,
avg_conv: AveragingConversions,
avg_res: AveragingResults
) -> Result<(), Error<SpiE, PinE>>
pub fn averaging(
&mut self,
avg_conv: AveragingConversions,
avg_res: AveragingResults
) -> Result<(), Error<SpiE, PinE>>
Set up the Averaging register. This sets the AVGON, NAVG1, NAVG0, NSCAN1 and NSCAN0 bits accordingly
impl<SpiE, PinE, SPI, CS, EOC, CNVST> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, InternallyClockedExternallyTimedCnvst, WithoutWakeupDelay> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
EOC: InputPin<Error = PinE>,
CNVST: OutputPin<Error = PinE>,
impl<SpiE, PinE, SPI, CS, EOC, CNVST> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, InternallyClockedExternallyTimedCnvst, WithoutWakeupDelay> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
EOC: InputPin<Error = PinE>,
CNVST: OutputPin<Error = PinE>,
Implementations when using the internal clock where CNVST is held low for the duration of the conversion
TODO: Implement. Unfortunately, the test board used to verify this library did not have the CNVST connected, so I wouldn’t be able to test an implementation easily.
impl<SpiE, PinE, SPI, CS, EOC, CNVST> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, InternallyClockedInternallyTimedCnvst, WithWakeupDelay> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
EOC: InputPin<Error = PinE>,
CNVST: OutputPin<Error = PinE>,
impl<SpiE, PinE, SPI, CS, EOC, CNVST> Max116xx10BitCnvstEocExt<SPI, CS, EOC, CNVST, InternallyClockedInternallyTimedCnvst, WithWakeupDelay> where
SPI: Transfer<u8, Error = SpiE> + FullDuplex<u8, Error = SpiE>,
CS: OutputPin<Error = PinE>,
EOC: InputPin<Error = PinE>,
CNVST: OutputPin<Error = PinE>,
Implementations when using the internal clock where CNVST is only pulsed to start acquisition and conversion
TODO: Test. Unfortunately, the test board used to verify this library did not have the CNVST connected, so I wouldn’t be able to test an implementation easily.