Struct COMP2

Source
pub struct COMP2 { /* private fields */ }

Implementations§

Source§

impl COMP2

Source

pub fn csr(&self) -> &COMP2_CSR

Trait Implementations§

Source§

impl ComparatorExt<COMP2> for COMP2

Source§

fn comparator<P: PositiveInput<COMP2>, N: NegativeInput<COMP2>>( self, positive_input: P, negative_input: N, config: Config, clocks: &Clocks, ) -> Comparator<COMP2, Disabled>

Initializes a comparator
Source§

impl<ED> NegativeInput<COMP2> for &Channel1<ED>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl<ED> NegativeInput<COMP2> for &Channel2<ED>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl NegativeInput<COMP2> for PA2<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl NegativeInput<COMP2> for PB3<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl NegativeInput<COMP2> for PB7<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl NegativeInput<COMP2> for RefintInput

Source§

fn setup(&self, comp: &COMP2)

Source§

impl OutputPin<COMP2> for PA12<Output<OpenDrain>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PA12<Output<PushPull>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PA2<Output<OpenDrain>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PA2<Output<PushPull>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PA7<Output<OpenDrain>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PA7<Output<PushPull>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PB11<Output<OpenDrain>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PB11<Output<PushPull>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PB5<Output<OpenDrain>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl OutputPin<COMP2> for PB5<Output<PushPull>>

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl PositiveInput<COMP2> for Comp1InP

Source§

fn setup(&self, comp: &COMP2)

Source§

impl PositiveInput<COMP2> for Open

Source§

fn setup(&self, comp: &COMP2)

Source§

impl PositiveInput<COMP2> for PA3<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl PositiveInput<COMP2> for PB4<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl PositiveInput<COMP2> for PB6<Analog>

Source§

fn setup(&self, comp: &COMP2)

Source§

impl WindowComparatorExt<COMP1, COMP2> for (COMP1, COMP2)

Source§

fn window_comparator<I: PositiveInput<COMP1>, L: NegativeInput<COMP2>, U: NegativeInput<COMP1>>( self, input: I, lower_threshold: L, upper_threshold: U, config: Config, clocks: &Clocks, ) -> WindowComparator<COMP1, COMP2, Disabled>

Uses two comparators to implement a window comparator Read more
Source§

impl WindowComparatorExt<COMP2, COMP1> for (COMP2, COMP1)

Source§

fn window_comparator<I: PositiveInput<COMP2>, L: NegativeInput<COMP1>, U: NegativeInput<COMP2>>( self, input: I, lower_threshold: L, upper_threshold: U, config: Config, clocks: &Clocks, ) -> WindowComparator<COMP2, COMP1, Disabled>

Uses two comparators to implement a window comparator Read more

Auto Trait Implementations§

§

impl Freeze for COMP2

§

impl RefUnwindSafe for COMP2

§

impl Send for COMP2

§

impl Sync for COMP2

§

impl Unpin for COMP2

§

impl UnwindSafe for COMP2

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 = Infallible

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.