Struct stm32f4xx_hal::adc::config::AdcConfig
source · pub struct AdcConfig { /* private fields */ }
Expand description
Configuration for the adc. There are some additional parameters on the adc peripheral that can be added here when needed but this covers several basic usecases.
Implementations§
source§impl AdcConfig
impl AdcConfig
sourcepub fn resolution(self, resolution: Resolution) -> Self
pub fn resolution(self, resolution: Resolution) -> Self
change the resolution field
sourcepub fn external_trigger(
self,
trigger_mode: TriggerMode,
trigger: ExternalTrigger
) -> Self
pub fn external_trigger( self, trigger_mode: TriggerMode, trigger: ExternalTrigger ) -> Self
change the external_trigger field
sourcepub fn continuous(self, continuous: Continuous) -> Self
pub fn continuous(self, continuous: Continuous) -> Self
change the continuous field
sourcepub fn end_of_conversion_interrupt(
self,
end_of_conversion_interrupt: Eoc
) -> Self
pub fn end_of_conversion_interrupt( self, end_of_conversion_interrupt: Eoc ) -> Self
change the end_of_conversion_interrupt field
sourcepub fn default_sample_time(self, default_sample_time: SampleTime) -> Self
pub fn default_sample_time(self, default_sample_time: SampleTime) -> Self
change the default_sample_time field
sourcepub fn reference_voltage(self, vdda_mv: u32) -> Self
pub fn reference_voltage(self, vdda_mv: u32) -> Self
Trait Implementations§
source§impl PartialEq for AdcConfig
impl PartialEq for AdcConfig
impl Copy for AdcConfig
impl Eq for AdcConfig
impl StructuralEq for AdcConfig
impl StructuralPartialEq for AdcConfig
Auto Trait Implementations§
impl RefUnwindSafe for AdcConfig
impl Send for AdcConfig
impl Sync for AdcConfig
impl Unpin for AdcConfig
impl UnwindSafe for AdcConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more