#[repr(u8)]pub enum Polarity {
NONE = 0,
LO_TO_HI = 1,
HI_TO_LO = 2,
TOGGLE = 3,
}
Variants§
NONE = 0
Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.
LO_TO_HI = 1
Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.
HI_TO_LO = 2
Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.
TOGGLE = 3
Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.
Implementations§
Trait Implementations§
Source§impl Ord for Polarity
impl Ord for Polarity
Source§impl PartialOrd for Polarity
impl PartialOrd for Polarity
impl Copy for Polarity
impl Eq for Polarity
impl StructuralPartialEq for Polarity
Auto Trait Implementations§
impl Freeze for Polarity
impl RefUnwindSafe for Polarity
impl Send for Polarity
impl Sync for Polarity
impl Unpin for Polarity
impl UnwindSafe for Polarity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)