Trait gd32vf103xx_hal::adc::ChannelTimeSequence [−][src]
pub trait ChannelTimeSequence {
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
fn set_channel_sample_time(&mut self, chan: u8, sample_time: SampleTime)
fn set_channel_sample_time(&mut self, chan: u8, sample_time: SampleTime)
Set ADC sampling time for particular channel
fn set_regular_sequence(&mut self, channels: &[u8])
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.
fn set_continuous_mode(&mut self, continuous: bool)
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.
fn set_discontinuous_mode(&mut self, channels_count: Option<u8>)
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.