Type Alias d1_pac::usb1::ohci_root_hub_partition::hc_rh_descriptor_a::OVER_CURRENT_PROTECTION_MODE_R
source · pub type OVER_CURRENT_PROTECTION_MODE_R = BitReader<OVER_CURRENT_PROTECTION_MODE_A>;
Expand description
Field over_current_protection_mode
reader - 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.
Aliased Type§
struct OVER_CURRENT_PROTECTION_MODE_R { /* private fields */ }
Implementations§
source§impl OVER_CURRENT_PROTECTION_MODE_R
impl OVER_CURRENT_PROTECTION_MODE_R
sourcepub fn variant(&self) -> OVER_CURRENT_PROTECTION_MODE_A
pub fn variant(&self) -> OVER_CURRENT_PROTECTION_MODE_A
Get enumerated values variant
sourcepub fn is_report_perport(&self) -> bool
pub fn is_report_perport(&self) -> bool
Checks if the value of the field is REPORT_PERPORT