embassy-stm32

Crates

git

Versions

stm32l4p5re

Flavors

Skip to main content

AnalogWatchdog

Struct AnalogWatchdog 

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

Analog watchdog of a filter.

Implementations§

Source§

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

Source

pub async fn wait_for_event(&mut self) -> AnalogWatchdogEvent

Wait for an analog watchdog event.

Source

pub fn configure(&mut self, config: AnalogWatchdogConfig)

Apply a full configuration.

Source

pub fn set_high_threshold(&mut self, threshold: i32)

Set the high threshold.

Source

pub fn set_low_threshold(&mut self, threshold: i32)

Set the low threshold.

Source

pub fn assign_high_to_break_signals(&mut self, break_signals: BreakSignals)

Assign break signals to fire on the high threshold.

§Note

This routes a watchdog event to a DFSDM break wire (BKAWH); the receiving timer must separately map that wire to a break input (BRK).

Source

pub fn assign_low_to_break_signals(&mut self, break_signals: BreakSignals)

Assign break signals to fire on the low threshold.

§Note

This routes a watchdog event to a DFSDM break wire (BKAWL); the receiving timer must separately map that wire to a break input (BRK).

Source

pub fn enable_analog_watchdog_fastmode(&mut self, enabled: bool)

Enable or disable the watchdog filter as the comparison source (AWFSEL).

§Note

AWFSEL is per-channel and only meaningful in fast mode, where the watchdog compares against its own fast filter instead of the main filter output.

Source

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

Assign provided transceivers to this analog watchdog

Source

pub fn channel_flag_low(&self, channel: TransceiverChannel) -> bool

Whether the low-threshold flag is set for channel.

Source

pub fn channel_flag_high(&self, channel: TransceiverChannel) -> bool

Whether the high-threshold flag is set for channel.

Source

pub fn flags_low(&self) -> u8

Low-threshold flag bitmap.

Source

pub fn flags_high(&self) -> u8

High-threshold flag bitmap.

Source

pub fn clear_channel_flags_low(&mut self, channel: TransceiverChannel)

Clear the low-threshold flag for channel.

Source

pub fn clear_channel_flags_high(&mut self, channel: TransceiverChannel)

Clear the high-threshold flag for channel.

Source

pub fn clear_flags_low(&mut self)

Clear all low-threshold flags.

Source

pub fn clear_flags_high(&mut self)

Clear all high-threshold flags.

Auto Trait Implementations§

§

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

§

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

§

impl<'a, 'd, T, M> Freeze for AnalogWatchdog<'a, 'd, T, M>

§

impl<'a, 'd, T, M> Send for AnalogWatchdog<'a, 'd, T, M>

§

impl<'a, 'd, T, M> Sync for AnalogWatchdog<'a, 'd, T, M>

§

impl<'a, 'd, T, M> Unpin for AnalogWatchdog<'a, 'd, T, M>

§

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