embassy-stm32

Crates

git

Versions

stm32l4p5re

Flavors

Skip to main content

FilterConfig

Struct FilterConfig 

Source
pub struct FilterConfig<T: Instance, M: FilterMarker> {
    pub filter_params: FilterParameters,
    pub enable_continuous_regular: bool,
    pub enable_fast_regular: bool,
    pub enable_regular_sync: bool,
    pub enable_injected_sync: bool,
    pub enable_injected_scanning: bool,
    pub trigger: InjectedTrigger<T, M>,
}
Expand description

Configuration for a filter, applied on enable.

Fields§

§filter_params: FilterParameters

Filter order, OSR and input width.

§enable_continuous_regular: bool

Run regular conversions continuously.

§enable_fast_regular: bool

Use fast mode for continuous regular conversions: the filter is not refilled between conversions, so the OSR windows overlap and each conversion after the first is faster.

§enable_regular_sync: bool

Synchronize regular conversions to the clock.

§enable_injected_sync: bool

Synchronize injected conversions to the clock.

§enable_injected_scanning: bool

Cycle injected conversions through the selected transceivers.

§trigger: InjectedTrigger<T, M>

Configures the trigger for injected conversions.

InjectedTrigger::Enabled enables the trigger with the specified trigger source and edge; InjectedTrigger::Disabled disables it.

Trait Implementations§

Source§

impl<T: Instance, M: FilterMarker> Default for FilterConfig<T, M>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T, M> Freeze for FilterConfig<T, M>
where InjectedTrigger<T, M>: Freeze,

§

impl<T, M> RefUnwindSafe for FilterConfig<T, M>

§

impl<T, M> Send for FilterConfig<T, M>
where InjectedTrigger<T, M>: Send,

§

impl<T, M> Sync for FilterConfig<T, M>
where InjectedTrigger<T, M>: Sync,

§

impl<T, M> Unpin for FilterConfig<T, M>
where InjectedTrigger<T, M>: Unpin,

§

impl<T, M> UnsafeUnpin for FilterConfig<T, M>

§

impl<T, M> UnwindSafe for FilterConfig<T, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.