embassy-stm32

Crates

git

Versions

stm32h747ig-cm7

Flavors

Skip to main content

ClockAbsenceDetector

Struct ClockAbsenceDetector 

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

Clock-absence detector.

Implementations§

Source§

impl<'a, 'd, T> ClockAbsenceDetector<'a, 'd, T>

Source

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

Wait for a clock-absence-detector event

Source§

impl<'a, 'd, T> ClockAbsenceDetector<'a, 'd, T>
where T: Instance,

Source

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

Assigns the transceivers to the clock-absence-detector (overwrites assignments)

Source

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

Unassigns the transceivers from the clock-absence-detector

Source

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

Whether the clock-absence flag is set for channel.

Source

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

Clear the clock-absence flag for channel.

Source

pub fn flags(&self) -> u8

Clock-absence flag bitmap.

§Note

The raw CKABF bits are held set while a channel is disabled or not yet synchronized, so they are masked here against the armed channel set. Call clear_flags after assigning transceivers to drop startup residue.

Source

pub fn clear_flags(&mut self)

Clear all pending detector flags for currently armed channels.

Use this after assigning transceivers to clear any startup residue before waiting for events.

Auto Trait Implementations§

§

impl<'a, 'd, T> !RefUnwindSafe for ClockAbsenceDetector<'a, 'd, T>

§

impl<'a, 'd, T> !UnwindSafe for ClockAbsenceDetector<'a, 'd, T>

§

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

§

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

§

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

§

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

§

impl<'a, 'd, T> UnsafeUnpin for ClockAbsenceDetector<'a, 'd, T>

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.