pub enum OT15R {
PUSHPULL,
OPENDRAIN,
}
Expand description
Possible values of the field OT15
Variants
PUSHPULL
Output push-pull (reset state)
OPENDRAIN
Output open-drain
Implementations
sourceimpl OT15R
impl OT15R
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_push_pull(&self) -> bool
pub fn is_push_pull(&self) -> bool
Checks if the value of the field is PUSHPULL
sourcepub fn is_open_drain(&self) -> bool
pub fn is_open_drain(&self) -> bool
Checks if the value of the field is OPENDRAIN
Trait Implementations
impl Copy for OT15R
impl StructuralPartialEq for OT15R
Auto Trait Implementations
impl RefUnwindSafe for OT15R
impl Send for OT15R
impl Sync for OT15R
impl Unpin for OT15R
impl UnwindSafe for OT15R
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