[][src]Type Definition lpc54606_pac::usbhsd::devcmdstat::R

type R = R<u32, DEVCMDSTAT>;

Reader of register DEVCMDSTAT

Methods

impl R[src]

pub fn dev_addr(&self) -> DEV_ADDR_R[src]

Bits 0:6 - USB device address.

pub fn dev_en(&self) -> DEV_EN_R[src]

Bit 7 - USB device enable.

pub fn setup(&self) -> SETUP_R[src]

Bit 8 - SETUP token received.

pub fn force_needclk(&self) -> FORCE_NEEDCLK_R[src]

Bit 9 - Forces the NEEDCLK output to always be on:.

pub fn force_vbus(&self) -> FORCE_VBUS_R[src]

Bit 10 - If this bit is set to 1, the VBUS voltage indicators from the PHY are overruled.

pub fn lpm_sup(&self) -> LPM_SUP_R[src]

Bit 11 - LPM Supported:.

pub fn intonnak_ao(&self) -> INTONNAK_AO_R[src]

Bit 12 - Interrupt on NAK for interrupt and bulk OUT EP:.

pub fn intonnak_ai(&self) -> INTONNAK_AI_R[src]

Bit 13 - Interrupt on NAK for interrupt and bulk IN EP:.

pub fn intonnak_co(&self) -> INTONNAK_CO_R[src]

Bit 14 - Interrupt on NAK for control OUT EP:.

pub fn intonnak_ci(&self) -> INTONNAK_CI_R[src]

Bit 15 - Interrupt on NAK for control IN EP:.

pub fn dcon(&self) -> DCON_R[src]

Bit 16 - Device status - connect.

pub fn dsus(&self) -> DSUS_R[src]

Bit 17 - Device status - suspend.

pub fn lpm_sus(&self) -> LPM_SUS_R[src]

Bit 19 - Device status - LPM Suspend.

pub fn lpm_rewp(&self) -> LPM_REWP_R[src]

Bit 20 - LPM Remote Wake-up Enabled by USB host.

pub fn speed(&self) -> SPEED_R[src]

Bits 22:23 - This field indicates the speed at which the device operates: 00b: reserved 01b: full-speed 10b: high-speed 11b: super-speed (reserved for future use).

pub fn dcon_c(&self) -> DCON_C_R[src]

Bit 24 - Device status - connect change.

pub fn dsus_c(&self) -> DSUS_C_R[src]

Bit 25 - Device status - suspend change.

pub fn dres_c(&self) -> DRES_C_R[src]

Bit 26 - Device status - reset change.

pub fn vbus_debounced(&self) -> VBUS_DEBOUNCED_R[src]

Bit 28 - This bit indicates if VBUS is detected or not.

pub fn phy_test_mode(&self) -> PHY_TEST_MODE_R[src]

Bits 29:31 - This field is written by firmware to put the PHY into a test mode as defined by the USB2.