Struct ch32v3::ch32v30x::usb_otg_fs::usb_otg_cr::R
source · pub struct R(_);
Expand description
Register USB_OTG_CR
reader
Implementations§
source§impl R
impl R
sourcepub fn usb_otg_cr_dischargevbus(&self) -> USB_OTG_CR_DISCHARGEVBUS_R
pub fn usb_otg_cr_dischargevbus(&self) -> USB_OTG_CR_DISCHARGEVBUS_R
Bit 0 - usb otg control
sourcepub fn usb_otg_cr_chargevbus(&self) -> USB_OTG_CR_CHARGEVBUS_R
pub fn usb_otg_cr_chargevbus(&self) -> USB_OTG_CR_CHARGEVBUS_R
Bit 1 - usb otg control
sourcepub fn usb_otg_cr_idpu(&self) -> USB_OTG_CR_IDPU_R
pub fn usb_otg_cr_idpu(&self) -> USB_OTG_CR_IDPU_R
Bit 2 - usb otg control
sourcepub fn usb_otg_cr_otg_en(&self) -> USB_OTG_CR_OTG_EN_R
pub fn usb_otg_cr_otg_en(&self) -> USB_OTG_CR_OTG_EN_R
Bit 3 - usb otg control
sourcepub fn usb_otg_cr_vbus(&self) -> USB_OTG_CR_VBUS_R
pub fn usb_otg_cr_vbus(&self) -> USB_OTG_CR_VBUS_R
Bit 4 - usb otg control
sourcepub fn usb_otg_cr_sess(&self) -> USB_OTG_CR_SESS_R
pub fn usb_otg_cr_sess(&self) -> USB_OTG_CR_SESS_R
Bit 5 - usb otg control