Type Alias atsame70n21b::usbhs::hstctrl::SPDCONF_W

source ·
pub type SPDCONF_W<'a, const O: u8> = FieldWriterSafe<'a, HSTCTRL_SPEC, 2, O, SPDCONFSELECT_A>;
Expand description

Field SPDCONF writer - Mode Configuration

Aliased Type§

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

Implementations§

source§

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

source

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

The host starts in Full-speed mode and performs a high-speed reset to switch to High-speed mode if the downstream peripheral is high-speed capable.

source

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

For a better consumption, if high speed is not needed.

source

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

Forced high speed.

source

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

The host remains in Full-speed mode whatever the peripheral speed capability.