Struct ch32v3::ch32v30x::usb_otg_fs::uep2_r_ctrl__usbhd_uh_rx_ctrl::W
source · pub struct W(_);
Expand description
Register UEP2_R_CTRL__USBHD_UH_RX_CTRL
writer
Implementations§
source§impl W
impl W
sourcepub fn mask_uep_r_res___usbhd_uh_r_res(
&mut self
) -> MASK_UEP_R_RES___USBHD_UH_R_RES_W<'_, 0>
pub fn mask_uep_r_res___usbhd_uh_r_res( &mut self ) -> MASK_UEP_R_RES___USBHD_UH_R_RES_W<'_, 0>
Bits 0:1 - bit mask of handshake response type for USB endpoint X receiving (OUT)
sourcepub fn usbhd_uep_r_tog___usbhd_uh_r_tog(
&mut self
) -> USBHD_UEP_R_TOG___USBHD_UH_R_TOG_W<'_, 2>
pub fn usbhd_uep_r_tog___usbhd_uh_r_tog( &mut self ) -> USBHD_UEP_R_TOG___USBHD_UH_R_TOG_W<'_, 2>
Bit 2 - expected data toggle flag of USB endpoint X receiving (OUT): 0=DATA0, 1=DATA1
sourcepub fn usbhd_uep_auto_tog___usbhd_uh_r_auto_tog(
&mut self
) -> USBHD_UEP_AUTO_TOG___USBHD_UH_R_AUTO_TOG_W<'_, 3>
pub fn usbhd_uep_auto_tog___usbhd_uh_r_auto_tog( &mut self ) -> USBHD_UEP_AUTO_TOG___USBHD_UH_R_AUTO_TOG_W<'_, 3>
Bit 3 - enable automatic toggle after successful transfer completion on endpoint 1/2/3: 0=manual toggle, 1=automatic toggle