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

source

pub fn variant(&self) -> OVER_CURRENT_PROTECTION_MODE_A

Get enumerated values variant

source

pub fn is_report(&self) -> bool

Checks if the value of the field is REPORT

source

pub fn is_report_perport(&self) -> bool

Checks if the value of the field is REPORT_PERPORT