Enum xmc4300::usb0::dctl::SFT_DISCON_A
source · pub enum SFT_DISCON_A {
VALUE1 = 0,
VALUE2 = 1,
}
Expand description
Soft Disconnect
Value on reset: 1
Variants§
VALUE1 = 0
0: Normal operation. When this bit is cleared after a soft disconnect, the core drives a device connect event to the USB host. When the device is reconnected, the USB host restarts device enumeration.
VALUE2 = 1
1: The core drives a device disconnect event to the USB host.
Trait Implementations§
source§impl Clone for SFT_DISCON_A
impl Clone for SFT_DISCON_A
source§fn clone(&self) -> SFT_DISCON_A
fn clone(&self) -> SFT_DISCON_A
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SFT_DISCON_A
impl Debug for SFT_DISCON_A
source§impl From<SFT_DISCON_A> for bool
impl From<SFT_DISCON_A> for bool
source§fn from(variant: SFT_DISCON_A) -> Self
fn from(variant: SFT_DISCON_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for SFT_DISCON_A
impl PartialEq for SFT_DISCON_A
source§fn eq(&self, other: &SFT_DISCON_A) -> bool
fn eq(&self, other: &SFT_DISCON_A) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SFT_DISCON_A
impl Eq for SFT_DISCON_A
impl StructuralPartialEq for SFT_DISCON_A
Auto Trait Implementations§
impl Freeze for SFT_DISCON_A
impl RefUnwindSafe for SFT_DISCON_A
impl Send for SFT_DISCON_A
impl Sync for SFT_DISCON_A
impl Unpin for SFT_DISCON_A
impl UnwindSafe for SFT_DISCON_A
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