embassy-stm32

Crates

git

Versions

stm32h7b0zb

Flavors

Skip to main content

ExtremesDetector

Struct ExtremesDetector 

Source
pub struct ExtremesDetector<'a, 'd, T, M>
where T: Instance, M: FilterMarker,
{ /* private fields */ }
Expand description

Extremes (min/max) detector of a filter.

Implementations§

Source§

impl<'a, 'd, T, M> ExtremesDetector<'a, 'd, T, M>
where T: Instance, M: FilterMarker,

Source

pub fn assign_transceivers<const N: usize>( &mut self, transceivers: [&dyn TransceiverTrait<T, Enabled>; N], )
where [(); N]: NonEmpty,

Assign provided transceivers to this extremes detector

Source

pub fn read_maxima(&mut self) -> ResultExtreme

Reads the extremes detector maximum value and its corresponding channel. Reading this resets the register value to 0x800000 and clears the channel field.

Source

pub fn read_minima(&mut self) -> ResultExtreme

Reads the extremes detector minimum value and its corresponding channel. Reading this resets the register value to 0x7FFFFF and clears the channel field.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<'a, 'd, T, M> UnsafeUnpin for ExtremesDetector<'a, 'd, T, M>
where PhantomData<(&'a DfsdmCommon<'d, T, Enabled>, M)>: UnsafeUnpin,

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.