pub type INPUTMODE_W<'a, const O: u8> = FieldWriter<'a, u32, R5VCTRL_SPEC, u8, INPUTMODE_A, 2, O>;
Expand description

Field INPUTMODE writer - 5V Input Mode

Implementations§

source§

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

source

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

Regulator input supply switched automatically to the highest voltage of either VBUS or VREGI

source

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

Force VBUS pin as the regulator input

source

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

Force VREGI pin as the regulator input