ChannelTimeSequence

Trait ChannelTimeSequence 

Source
pub trait ChannelTimeSequence {
    // Required methods
    fn set_channel_sample_time(&mut self, chan: u8, sample_time: SampleTime);
    fn set_regular_sequence(&mut self, channels: &[u8]);
    fn set_continuous_mode(&mut self, continuous: bool);
    fn set_discontinuous_mode(&mut self, channels_count: Option<u8>);
}

Required Methods§

Source

fn set_channel_sample_time(&mut self, chan: u8, sample_time: SampleTime)

Set ADC sampling time for particular channel

Source

fn set_regular_sequence(&mut self, channels: &[u8])

ADC Set a Regular Channel Conversion Sequence

Define a sequence of channels to be converted as a regular group.

Source

fn set_continuous_mode(&mut self, continuous: bool)

Set ADC continuous conversion

When continuous conversion is enabled conversion does not stop at the last selected group channel but continues again from the first selected group channel.

Source

fn set_discontinuous_mode(&mut self, channels_count: Option<u8>)

Set ADC discontinuous mode

It can be used to convert a short sequence of conversions (up to 8) which is a part of the regular sequence of conversions.

Implementors§