Struct d1_pac::usb1::ohci_root_hub_partition::hc_rh_descriptor_a::W
source · pub struct W(/* private fields */);
Expand description
Register hc_rh_descriptor_a
writer
Implementations§
source§impl W
impl W
sourcepub fn no_power_swithcing(&mut self) -> NO_POWER_SWITHCING_W<'_, 8>
pub fn no_power_swithcing(&mut self) -> NO_POWER_SWITHCING_W<'_, 8>
Bit 8 - NoPowerSwithcing
These bits are used to specify whether power switching is supported or ports are always powered. It is implementation- specific. When this bit is cleared, the PowerSwitchingMode specifies global or per-port switching.
sourcepub fn power_switching_mode(&mut self) -> POWER_SWITCHING_MODE_W<'_, 9>
pub fn power_switching_mode(&mut self) -> POWER_SWITCHING_MODE_W<'_, 9>
Bit 9 - PowerSwitchingMode
This bit is used to specify how the power switching of the Root Hub ports is controlled. It is implementation-specific. This field is only valid if the NoPowerSwitching field is cleared.
sourcepub fn over_current_protection_mode(
&mut self,
) -> OVER_CURRENT_PROTECTION_MODE_W<'_, 11>
pub fn over_current_protection_mode( &mut self, ) -> OVER_CURRENT_PROTECTION_MODE_W<'_, 11>
Bit 11 - 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.
sourcepub fn no_over_current_protection(
&mut self,
) -> NO_OVER_CURRENT_PROTECTION_W<'_, 12>
pub fn no_over_current_protection( &mut self, ) -> NO_OVER_CURRENT_PROTECTION_W<'_, 12>
Bit 12 - NoOverCurrentProtection
This bit describes how the overcurrent status for the Root Hub ports are reported. When this bit is cleared, the OverCurrentProtectionMode field specifies global or per-port reporting.
sourcepub fn power_on_to_power_good_time(
&mut self,
) -> POWER_ON_TO_POWER_GOOD_TIME_W<'_, 24>
pub fn power_on_to_power_good_time( &mut self, ) -> POWER_ON_TO_POWER_GOOD_TIME_W<'_, 24>
Bits 24:31 - PowerOnToPowerGoodTime[POTPGT]
This byte specifies the duration HCD has to wait before accessing a powered-on port of the Root Hub. It is implementation-specific. The unit of time is 2 ms. The duration is calculated as POTPGT * 2ms.