pub type OVER_CURRENT_PROTECTION_MODE_W<'a, const O: u8> = BitWriter<'a, u32, HC_RH_DESCRIPTOR_A_SPEC, OVER_CURRENT_PROTECTION_MODE_A, O>;
Expand description

Field over_current_protection_mode writer - 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_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> OVER_CURRENT_PROTECTION_MODE_W<'a, O>

source

pub fn report(self) -> &'a mut W

Over-current status is reported collectively for all downstream ports

source

pub fn report_perport(self) -> &'a mut W

Over-current status is reported on per-port basis