Type Alias d1_pac::usb1::ehci_operational::portsc::SUSPEND_W

source ·
pub type SUSPEND_W<'a, const O: u8> = BitWriter<'a, u32, PORTSC_SPEC, SUSPEND_A, O>;
Expand description

Field suspend writer - Suspend

Port Enabled Bit and Suspend bit of this register define the port states

When in suspend state, downstream propagation of data is blocked on this port, except for port reset. The blocking occurs at the end of the current transaction, if a transaction was in progress when this bit was written to 1. In the suspend state, the port is sensitive to resume detection. Not that the bit status does not change until the port is suspend and that there may be a delay in suspending a port if there is a transaction currently in progress on the USB.

A write of zero to this bit is ignored by the host controller. The host controller will unconditionally set this bit to a zero when:

  1. Software sets the Force Port Resume bit to a zero(from a one).
  2. Software sets the Port Reset bit to a one(from a zero).

If host software sets this bit to a one when the port is not enabled(i.e. Port enabled bit is a zero), the results are undefined.

This field is zero if Port Power is zero.

The default value in this field is ‘0’.

Aliased Type§

struct SUSPEND_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

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

source

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

Not suspend

source

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

Suspend