Type Alias rp2040_pac::usbctrl_regs::sie_ctrl::R

source ·
pub type R = R<SIE_CTRL_SPEC>;
Expand description

Register SIE_CTRL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn start_trans(&self) -> START_TRANS_R

Bit 0 - Host: Start transaction

source

pub fn send_setup(&self) -> SEND_SETUP_R

Bit 1 - Host: Send Setup packet

source

pub fn send_data(&self) -> SEND_DATA_R

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

source

pub fn receive_data(&self) -> RECEIVE_DATA_R

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

source

pub fn stop_trans(&self) -> STOP_TRANS_R

Bit 4 - Host: Stop transaction

source

pub fn preamble_en(&self) -> PREAMBLE_EN_R

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

source

pub fn sof_sync(&self) -> SOF_SYNC_R

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

source

pub fn sof_en(&self) -> SOF_EN_R

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

source

pub fn keep_alive_en(&self) -> KEEP_ALIVE_EN_R

Bit 10 - Host: Enable keep alive packet (for low speed bus)

source

pub fn vbus_en(&self) -> VBUS_EN_R

Bit 11 - Host: Enable VBUS

source

pub fn resume(&self) -> RESUME_R

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

source

pub fn reset_bus(&self) -> RESET_BUS_R

Bit 13 - Host: Reset bus

source

pub fn pulldown_en(&self) -> PULLDOWN_EN_R

Bit 15 - Host: Enable pull down resistors

source

pub fn pullup_en(&self) -> PULLUP_EN_R

Bit 16 - Device: Enable pull up resistor

source

pub fn rpu_opt(&self) -> RPU_OPT_R

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

source

pub fn transceiver_pd(&self) -> TRANSCEIVER_PD_R

Bit 18 - Power down bus transceiver

source

pub fn direct_dm(&self) -> DIRECT_DM_R

Bit 24 - Direct control of DM

source

pub fn direct_dp(&self) -> DIRECT_DP_R

Bit 25 - Direct control of DP

source

pub fn direct_en(&self) -> DIRECT_EN_R

Bit 26 - Direct bus drive enable

source

pub fn ep0_int_nak(&self) -> EP0_INT_NAK_R

Bit 27 - Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

source

pub fn ep0_int_2buf(&self) -> EP0_INT_2BUF_R

Bit 28 - Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0

source

pub fn ep0_int_1buf(&self) -> EP0_INT_1BUF_R

Bit 29 - Device: Set bit in BUFF_STATUS for every buffer completed on EP0

source

pub fn ep0_double_buf(&self) -> EP0_DOUBLE_BUF_R

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

source

pub fn ep0_int_stall(&self) -> EP0_INT_STALL_R

Bit 31 - Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL