embassy-stm32

Crates

git

Versions

stm32h747ig-cm7

Flavors

Skip to main content

FilterDisabled

Struct FilterDisabled 

Source
pub struct FilterDisabled<'a, 'd, T, M>{ /* private fields */ }
Expand description

A filter that is disabled (not yet enabled).

Implementations§

Source§

impl<'a, 'd, T, M> FilterDisabled<'a, 'd, T, M>

Source

pub fn enable_no_dma<'tr, 'ti, const N: usize>( self, regular: &'tr dyn TransceiverTrait<T, Enabled>, injected: [&'ti dyn TransceiverTrait<T, Enabled>; N], config: &FilterConfig<T, M>, ) -> Filter<'tr, 'ti, 'a, 'd, T, M, NoDma>
where [(); N]: NonEmpty,

Enable the filter without a DMA request flag.

Source

pub fn enable_reg_dma<'tr, 'ti, const N: usize>( self, regular: &'tr dyn TransceiverTrait<T, Enabled>, injected: [&'ti dyn TransceiverTrait<T, Enabled>; N], config: &FilterConfig<T, M>, ) -> Filter<'tr, 'ti, 'a, 'd, T, M, RegDma>
where [(); N]: NonEmpty,

Enable the filter and set the regular-conversion DMA request flag (RDMAEN).

Source

pub fn enable_inj_dma<'tr, 'ti, const N: usize>( self, regular: &'tr dyn TransceiverTrait<T, Enabled>, injected: [&'ti dyn TransceiverTrait<T, Enabled>; N], config: &FilterConfig<T, M>, ) -> Filter<'tr, 'ti, 'a, 'd, T, M, InjDma>
where [(); N]: NonEmpty,

Enable the filter and set the injected-conversion DMA request flag (JDMAEN).

Auto Trait Implementations§

§

impl<'a, 'd, T, M> !RefUnwindSafe for FilterDisabled<'a, 'd, T, M>

§

impl<'a, 'd, T, M> !UnwindSafe for FilterDisabled<'a, 'd, T, M>

§

impl<'a, 'd, T, M> Freeze for FilterDisabled<'a, 'd, T, M>
where PhantomData<M>: Freeze, &'a DfsdmCommon<'d, T, Enabled>: Freeze,

§

impl<'a, 'd, T, M> Send for FilterDisabled<'a, 'd, T, M>
where PhantomData<M>: Send, &'a DfsdmCommon<'d, T, Enabled>: Send,

§

impl<'a, 'd, T, M> Sync for FilterDisabled<'a, 'd, T, M>
where PhantomData<M>: Sync, &'a DfsdmCommon<'d, T, Enabled>: Sync,

§

impl<'a, 'd, T, M> Unpin for FilterDisabled<'a, 'd, T, M>
where PhantomData<M>: Unpin, &'a DfsdmCommon<'d, T, Enabled>: Unpin,

§

impl<'a, 'd, T, M> UnsafeUnpin for FilterDisabled<'a, 'd, 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.