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

source

pub fn start_trans(&mut self) -> START_TRANS_W<'_, SIE_CTRL_SPEC>

Bit 0 - Host: Start transaction

source

pub fn send_setup(&mut self) -> SEND_SETUP_W<'_, SIE_CTRL_SPEC>

Bit 1 - Host: Send Setup packet

source

pub fn send_data(&mut self) -> SEND_DATA_W<'_, SIE_CTRL_SPEC>

Bit 2 - Host: Send transaction (OUT from host)

source

pub fn receive_data(&mut self) -> RECEIVE_DATA_W<'_, SIE_CTRL_SPEC>

Bit 3 - Host: Receive transaction (IN to host)

source

pub fn stop_trans(&mut self) -> STOP_TRANS_W<'_, SIE_CTRL_SPEC>

Bit 4 - Host: Stop transaction

source

pub fn preamble_en(&mut self) -> PREAMBLE_EN_W<'_, SIE_CTRL_SPEC>

Bit 6 - Host: Preable enable for LS device on FS hub

source

pub fn sof_sync(&mut self) -> SOF_SYNC_W<'_, SIE_CTRL_SPEC>

Bit 8 - Host: Delay packet(s) until after SOF

source

pub fn sof_en(&mut self) -> SOF_EN_W<'_, SIE_CTRL_SPEC>

Bit 9 - Host: Enable SOF generation (for full speed bus)

source

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)

source

pub fn vbus_en(&mut self) -> VBUS_EN_W<'_, SIE_CTRL_SPEC>

Bit 11 - Host: Enable VBUS

source

pub fn resume(&mut self) -> RESUME_W<'_, SIE_CTRL_SPEC>

Bit 12 - Device: Remote wakeup. Device can initiate its own resume after suspend.

source

pub fn reset_bus(&mut self) -> RESET_BUS_W<'_, SIE_CTRL_SPEC>

Bit 13 - Host: Reset bus

source

pub fn pulldown_en(&mut self) -> PULLDOWN_EN_W<'_, SIE_CTRL_SPEC>

Bit 15 - Host: Enable pull down resistors

source

pub fn pullup_en(&mut self) -> PULLUP_EN_W<'_, SIE_CTRL_SPEC>

Bit 16 - Device: Enable pull up resistor

source

pub fn rpu_opt(&mut self) -> RPU_OPT_W<'_, SIE_CTRL_SPEC>

Bit 17 - Device: Pull-up strength (0=1K2, 1=2k3)

source

pub fn transceiver_pd(&mut self) -> TRANSCEIVER_PD_W<'_, SIE_CTRL_SPEC>

Bit 18 - Power down bus transceiver

source

pub fn direct_dm(&mut self) -> DIRECT_DM_W<'_, SIE_CTRL_SPEC>

Bit 24 - Direct control of DM

source

pub fn direct_dp(&mut self) -> DIRECT_DP_W<'_, SIE_CTRL_SPEC>

Bit 25 - Direct control of DP

source

pub fn direct_en(&mut self) -> DIRECT_EN_W<'_, SIE_CTRL_SPEC>

Bit 26 - Direct bus drive enable

source

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

source

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

source

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

source

pub fn ep0_double_buf(&mut self) -> EP0_DOUBLE_BUF_W<'_, SIE_CTRL_SPEC>

Bit 30 - Device: EP0 single buffered = 0, double buffered = 1

source

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

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual