Enum d1_pac::usb1::ohci_root_hub_partition::hc_rh_descriptor_a::OVER_CURRENT_PROTECTION_MODE_A
source · pub enum OVER_CURRENT_PROTECTION_MODE_A {
REPORT = 0,
REPORT_PERPORT = 1,
}
Expand description
OverCurrentProtectionMode
This bit describes how the overcurrent status for the Root Hub ports are reported. At reset, these fields should reflect the same mode as PowerSwitchingMode. This field is valid only if the NoOverCurrentProtection field is cleared. 0 Over-current status is reported collectively for all downstream ports. 1 Over-current status is reported on per-port basis.
Value on reset: 0
Variants§
REPORT = 0
0: Over-current status is reported collectively for all downstream ports
REPORT_PERPORT = 1
1: Over-current status is reported on per-port basis
Trait Implementations§
source§impl Clone for OVER_CURRENT_PROTECTION_MODE_A
impl Clone for OVER_CURRENT_PROTECTION_MODE_A
source§fn clone(&self) -> OVER_CURRENT_PROTECTION_MODE_A
fn clone(&self) -> OVER_CURRENT_PROTECTION_MODE_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 From<OVER_CURRENT_PROTECTION_MODE_A> for bool
impl From<OVER_CURRENT_PROTECTION_MODE_A> for bool
source§fn from(variant: OVER_CURRENT_PROTECTION_MODE_A) -> Self
fn from(variant: OVER_CURRENT_PROTECTION_MODE_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for OVER_CURRENT_PROTECTION_MODE_A
impl PartialEq for OVER_CURRENT_PROTECTION_MODE_A
source§fn eq(&self, other: &OVER_CURRENT_PROTECTION_MODE_A) -> bool
fn eq(&self, other: &OVER_CURRENT_PROTECTION_MODE_A) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for OVER_CURRENT_PROTECTION_MODE_A
impl Eq for OVER_CURRENT_PROTECTION_MODE_A
impl StructuralPartialEq for OVER_CURRENT_PROTECTION_MODE_A
Auto Trait Implementations§
impl Freeze for OVER_CURRENT_PROTECTION_MODE_A
impl RefUnwindSafe for OVER_CURRENT_PROTECTION_MODE_A
impl Send for OVER_CURRENT_PROTECTION_MODE_A
impl Sync for OVER_CURRENT_PROTECTION_MODE_A
impl Unpin for OVER_CURRENT_PROTECTION_MODE_A
impl UnwindSafe for OVER_CURRENT_PROTECTION_MODE_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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)