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§
Source§impl 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 Freeze for SWAPR
impl RefUnwindSafe for SWAPR
impl Send for SWAPR
impl Sync for SWAPR
impl Unpin for SWAPR
impl UnwindSafe for SWAPR
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