Enum stm32_hal2::comp::OutputPolarity
source · pub enum OutputPolarity {
NotInverted = 0,
Inverted = 1,
}
Expand description
Comparator output polarity
When OutputPolarity::NotInverted is used. The comparator output will be high (1) when NonInvertingInput has higher voltage than InvertingInput. The comparator output will be low (0) when NonInvertingInput has lower voltage than InvertingInput.
When OutputPolarity::Inverted is used. The comparator output will be high (1) when NonInvertingInput has lower voltage than InvertingInput. The comparator output will be low (0) when NonInvertingInput has higher voltage than InvertingInput.
Variants§
Trait Implementations§
source§impl Clone for OutputPolarity
impl Clone for OutputPolarity
source§fn clone(&self) -> OutputPolarity
fn clone(&self) -> OutputPolarity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for OutputPolarity
Auto Trait Implementations§
impl RefUnwindSafe for OutputPolarity
impl Send for OutputPolarity
impl Sync for OutputPolarity
impl Unpin for OutputPolarity
impl UnwindSafe for OutputPolarity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more