pub enum SWAPR {
STANDARD,
SWAPPED,
}
Expand description
Possible values of the field SWAP
Variants
STANDARD
TX/RX pins are used as defined in standard pinout
SWAPPED
The TX and RX pins functions are swapped
Implementations
sourceimpl SWAPR
impl SWAPR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_standard(&self) -> bool
pub fn is_standard(&self) -> bool
Checks if the value of the field is STANDARD
sourcepub fn is_swapped(&self) -> bool
pub fn is_swapped(&self) -> bool
Checks if the value of the field is SWAPPED
Trait Implementations
impl Copy for SWAPR
impl StructuralPartialEq for SWAPR
Auto Trait Implementations
impl RefUnwindSafe for SWAPR
impl Send for SWAPR
impl Sync for SWAPR
impl Unpin for SWAPR
impl UnwindSafe for SWAPR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more