embassy-stm32

Crates

git

Versions

stm32h747ig-cm7

Flavors

Skip to main content

ParallelPairDisabled

Struct ParallelPairDisabled 

Source
pub struct ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>{ /* private fields */ }
Expand description

A dual-mode parallel-input pair, disabled and ready to configure.

Implementations§

Source§

impl<'a, 'd, T, M, S, MN, SN> ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>

Source

pub fn set_data_right_shift(self, shifts: [DataRightShift; 2]) -> Self

Set the data right-shift factor for both channels ([0] = even, [1] = odd).

Source

pub fn select_awd_filter_order(self, orders: [AwdFilterOrder; 2]) -> Self

Set the analog watchdog filter order for both channels ([0] = even, [1] = odd).

Source

pub fn select_awd_filter_osr(self, osrs: [AwdFilterOsr; 2]) -> Self

Set the analog watchdog filter OSR for both channels ([0] = even, [1] = odd).

Source

pub fn set_offset(self, offsets: [u32; 2]) -> Self

Set the offset for both channels ([0] = even, [1] = odd).

Source

pub fn enable(self) -> ParallelPair<'a, 'd, T, M, S, MN, SN>

Enable both channels.

Auto Trait Implementations§

§

impl<'a, 'd, T, M, S, MN, SN> !RefUnwindSafe for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>

§

impl<'a, 'd, T, M, S, MN, SN> !UnwindSafe for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>

§

impl<'a, 'd, T, M, S, MN, SN> Freeze for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>

§

impl<'a, 'd, T, M, S, MN, SN> Send for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>
where Transceiver<'a, 'd, T, M, S, ParallelPaired, OwnPins, Disabled>: Send, Transceiver<'a, 'd, T, MN, SN, ParallelPaired, OwnPins, Disabled>: Send,

§

impl<'a, 'd, T, M, S, MN, SN> Sync for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>
where Transceiver<'a, 'd, T, M, S, ParallelPaired, OwnPins, Disabled>: Sync, Transceiver<'a, 'd, T, MN, SN, ParallelPaired, OwnPins, Disabled>: Sync,

§

impl<'a, 'd, T, M, S, MN, SN> Unpin for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>
where Transceiver<'a, 'd, T, M, S, ParallelPaired, OwnPins, Disabled>: Unpin, Transceiver<'a, 'd, T, MN, SN, ParallelPaired, OwnPins, Disabled>: Unpin,

§

impl<'a, 'd, T, M, S, MN, SN> UnsafeUnpin for ParallelPairDisabled<'a, 'd, T, M, S, MN, SN>

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.