Type Alias rp2040_pac::usbctrl_regs::sie_ctrl::W
source · pub type W = W<SIE_CTRL_SPEC>;
Expand description
Register SIE_CTRL
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn start_trans(&mut self) -> START_TRANS_W<'_, SIE_CTRL_SPEC>
pub fn start_trans(&mut self) -> START_TRANS_W<'_, SIE_CTRL_SPEC>
Bit 0 - Host: Start transaction
sourcepub fn send_setup(&mut self) -> SEND_SETUP_W<'_, SIE_CTRL_SPEC>
pub fn send_setup(&mut self) -> SEND_SETUP_W<'_, SIE_CTRL_SPEC>
Bit 1 - Host: Send Setup packet
sourcepub fn send_data(&mut self) -> SEND_DATA_W<'_, SIE_CTRL_SPEC>
pub fn send_data(&mut self) -> SEND_DATA_W<'_, SIE_CTRL_SPEC>
Bit 2 - Host: Send transaction (OUT from host)
sourcepub fn receive_data(&mut self) -> RECEIVE_DATA_W<'_, SIE_CTRL_SPEC>
pub fn receive_data(&mut self) -> RECEIVE_DATA_W<'_, SIE_CTRL_SPEC>
Bit 3 - Host: Receive transaction (IN to host)
sourcepub fn stop_trans(&mut self) -> STOP_TRANS_W<'_, SIE_CTRL_SPEC>
pub fn stop_trans(&mut self) -> STOP_TRANS_W<'_, SIE_CTRL_SPEC>
Bit 4 - Host: Stop transaction
sourcepub fn preamble_en(&mut self) -> PREAMBLE_EN_W<'_, SIE_CTRL_SPEC>
pub fn preamble_en(&mut self) -> PREAMBLE_EN_W<'_, SIE_CTRL_SPEC>
Bit 6 - Host: Preable enable for LS device on FS hub
sourcepub fn sof_sync(&mut self) -> SOF_SYNC_W<'_, SIE_CTRL_SPEC>
pub fn sof_sync(&mut self) -> SOF_SYNC_W<'_, SIE_CTRL_SPEC>
Bit 8 - Host: Delay packet(s) until after SOF
sourcepub fn sof_en(&mut self) -> SOF_EN_W<'_, SIE_CTRL_SPEC>
pub fn sof_en(&mut self) -> SOF_EN_W<'_, SIE_CTRL_SPEC>
Bit 9 - Host: Enable SOF generation (for full speed bus)
sourcepub fn keep_alive_en(&mut self) -> KEEP_ALIVE_EN_W<'_, SIE_CTRL_SPEC>
pub fn keep_alive_en(&mut self) -> KEEP_ALIVE_EN_W<'_, SIE_CTRL_SPEC>
Bit 10 - Host: Enable keep alive packet (for low speed bus)
sourcepub fn vbus_en(&mut self) -> VBUS_EN_W<'_, SIE_CTRL_SPEC>
pub fn vbus_en(&mut self) -> VBUS_EN_W<'_, SIE_CTRL_SPEC>
Bit 11 - Host: Enable VBUS
sourcepub fn resume(&mut self) -> RESUME_W<'_, SIE_CTRL_SPEC>
pub fn resume(&mut self) -> RESUME_W<'_, SIE_CTRL_SPEC>
Bit 12 - Device: Remote wakeup. Device can initiate its own resume after suspend.
sourcepub fn reset_bus(&mut self) -> RESET_BUS_W<'_, SIE_CTRL_SPEC>
pub fn reset_bus(&mut self) -> RESET_BUS_W<'_, SIE_CTRL_SPEC>
Bit 13 - Host: Reset bus
sourcepub fn pulldown_en(&mut self) -> PULLDOWN_EN_W<'_, SIE_CTRL_SPEC>
pub fn pulldown_en(&mut self) -> PULLDOWN_EN_W<'_, SIE_CTRL_SPEC>
Bit 15 - Host: Enable pull down resistors
sourcepub fn pullup_en(&mut self) -> PULLUP_EN_W<'_, SIE_CTRL_SPEC>
pub fn pullup_en(&mut self) -> PULLUP_EN_W<'_, SIE_CTRL_SPEC>
Bit 16 - Device: Enable pull up resistor
sourcepub fn rpu_opt(&mut self) -> RPU_OPT_W<'_, SIE_CTRL_SPEC>
pub fn rpu_opt(&mut self) -> RPU_OPT_W<'_, SIE_CTRL_SPEC>
Bit 17 - Device: Pull-up strength (0=1K2, 1=2k3)
sourcepub fn transceiver_pd(&mut self) -> TRANSCEIVER_PD_W<'_, SIE_CTRL_SPEC>
pub fn transceiver_pd(&mut self) -> TRANSCEIVER_PD_W<'_, SIE_CTRL_SPEC>
Bit 18 - Power down bus transceiver
sourcepub fn direct_dm(&mut self) -> DIRECT_DM_W<'_, SIE_CTRL_SPEC>
pub fn direct_dm(&mut self) -> DIRECT_DM_W<'_, SIE_CTRL_SPEC>
Bit 24 - Direct control of DM
sourcepub fn direct_dp(&mut self) -> DIRECT_DP_W<'_, SIE_CTRL_SPEC>
pub fn direct_dp(&mut self) -> DIRECT_DP_W<'_, SIE_CTRL_SPEC>
Bit 25 - Direct control of DP
sourcepub fn direct_en(&mut self) -> DIRECT_EN_W<'_, SIE_CTRL_SPEC>
pub fn direct_en(&mut self) -> DIRECT_EN_W<'_, SIE_CTRL_SPEC>
Bit 26 - Direct bus drive enable
sourcepub fn ep0_int_nak(&mut self) -> EP0_INT_NAK_W<'_, SIE_CTRL_SPEC>
pub fn ep0_int_nak(&mut self) -> EP0_INT_NAK_W<'_, SIE_CTRL_SPEC>
Bit 27 - Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK
sourcepub fn ep0_int_2buf(&mut self) -> EP0_INT_2BUF_W<'_, SIE_CTRL_SPEC>
pub fn ep0_int_2buf(&mut self) -> EP0_INT_2BUF_W<'_, SIE_CTRL_SPEC>
Bit 28 - Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0
sourcepub fn ep0_int_1buf(&mut self) -> EP0_INT_1BUF_W<'_, SIE_CTRL_SPEC>
pub fn ep0_int_1buf(&mut self) -> EP0_INT_1BUF_W<'_, SIE_CTRL_SPEC>
Bit 29 - Device: Set bit in BUFF_STATUS for every buffer completed on EP0
sourcepub fn ep0_double_buf(&mut self) -> EP0_DOUBLE_BUF_W<'_, SIE_CTRL_SPEC>
pub fn ep0_double_buf(&mut self) -> EP0_DOUBLE_BUF_W<'_, SIE_CTRL_SPEC>
Bit 30 - Device: EP0 single buffered = 0, double buffered = 1
sourcepub fn ep0_int_stall(&mut self) -> EP0_INT_STALL_W<'_, SIE_CTRL_SPEC>
pub fn ep0_int_stall(&mut self) -> EP0_INT_STALL_W<'_, SIE_CTRL_SPEC>
Bit 31 - Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL