Skip to main content

NonInvertingInput

Trait NonInvertingInput 

Source
pub trait NonInvertingInput {
    const SW: bool;
}
Expand description

What the non-inverting input consists of.

SW is the CMPxSW state. PA1 is the only pin wired to this input; handing over PA4 as well closes the switch and ties the two together, which is why the pair is a separate implementor. Owning PA4 here is what keeps it from also serving as the InvertingInput and shorting both inputs together.

Required Associated Constants§

Source

const SW: bool

Whether CMPxSW is closed for this source.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NonInvertingInput for (Pin<'A', 1, Analog>, Pin<'A', 4, Analog>)

Source§

const SW: bool = true

Implementors§

Source§

impl NonInvertingInput for Pin<'A', 1, Analog>

Source§

const SW: bool = false