W

Type Alias W 

Source
pub type W = W<u8, DEVCTL>;
Expand description

Writer for register DEVCTL

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn session(&mut self) -> SESSION_W<'_>

Bit 0 - Session Start/End (OTG only)

Source

pub fn hostreq(&mut self) -> HOSTREQ_W<'_>

Bit 1 - Host Request (OTG only)

Source

pub fn host(&mut self) -> HOST_W<'_>

Bit 2 - Host Mode

Source

pub fn vbus(&mut self) -> VBUS_W<'_>

Bits 3:4 - VBUS Level (OTG only)

Source

pub fn lsdev(&mut self) -> LSDEV_W<'_>

Bit 5 - Low-Speed Device Detected

Source

pub fn fsdev(&mut self) -> FSDEV_W<'_>

Bit 6 - Full-Speed Device Detected

Source

pub fn dev(&mut self) -> DEV_W<'_>

Bit 7 - Device Mode (OTG only)