pub enum AUTOENDR {
SOFTWARE,
AUTOMATIC,
}
Expand description
Possible values of the field AUTOEND
Variants
SOFTWARE
Software end mode: TC flag is set when NBYTES data are transferred, stretching SCL low
AUTOMATIC
Automatic end mode: a STOP condition is automatically sent when NBYTES data are transferred
Implementations
sourceimpl AUTOENDR
impl AUTOENDR
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_software(&self) -> bool
pub fn is_software(&self) -> bool
Checks if the value of the field is SOFTWARE
sourcepub fn is_automatic(&self) -> bool
pub fn is_automatic(&self) -> bool
Checks if the value of the field is AUTOMATIC
Trait Implementations
impl Copy for AUTOENDR
impl StructuralPartialEq for AUTOENDR
Auto Trait Implementations
impl RefUnwindSafe for AUTOENDR
impl Send for AUTOENDR
impl Sync for AUTOENDR
impl Unpin for AUTOENDR
impl UnwindSafe for AUTOENDR
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