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