Struct ch32v3::ch32v30x::usb_otg_fs::usb_otg_cr::W
source · pub struct W(_);
Expand description
Register USB_OTG_CR
writer
Implementations§
source§impl W
impl W
sourcepub fn usb_otg_cr_dischargevbus(&mut self) -> USB_OTG_CR_DISCHARGEVBUS_W<'_, 0>
pub fn usb_otg_cr_dischargevbus(&mut self) -> USB_OTG_CR_DISCHARGEVBUS_W<'_, 0>
Bit 0 - usb otg control
sourcepub fn usb_otg_cr_chargevbus(&mut self) -> USB_OTG_CR_CHARGEVBUS_W<'_, 1>
pub fn usb_otg_cr_chargevbus(&mut self) -> USB_OTG_CR_CHARGEVBUS_W<'_, 1>
Bit 1 - usb otg control
sourcepub fn usb_otg_cr_idpu(&mut self) -> USB_OTG_CR_IDPU_W<'_, 2>
pub fn usb_otg_cr_idpu(&mut self) -> USB_OTG_CR_IDPU_W<'_, 2>
Bit 2 - usb otg control
sourcepub fn usb_otg_cr_otg_en(&mut self) -> USB_OTG_CR_OTG_EN_W<'_, 3>
pub fn usb_otg_cr_otg_en(&mut self) -> USB_OTG_CR_OTG_EN_W<'_, 3>
Bit 3 - usb otg control
sourcepub fn usb_otg_cr_vbus(&mut self) -> USB_OTG_CR_VBUS_W<'_, 4>
pub fn usb_otg_cr_vbus(&mut self) -> USB_OTG_CR_VBUS_W<'_, 4>
Bit 4 - usb otg control
sourcepub fn usb_otg_cr_sess(&mut self) -> USB_OTG_CR_SESS_W<'_, 5>
pub fn usb_otg_cr_sess(&mut self) -> USB_OTG_CR_SESS_W<'_, 5>
Bit 5 - usb otg control