Struct rp2040_pac2::usb::regs::SieCtrl[][src]

#[repr(transparent)]pub struct SieCtrl(pub u32);

SIE control register

Implementations

impl SieCtrl[src]

pub const fn ep0_int_stall(&self) -> bool[src]

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL

pub fn set_ep0_int_stall(&mut self, val: bool)[src]

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL

pub const fn ep0_double_buf(&self) -> bool[src]

Device: EP0 single buffered = 0, double buffered = 1

pub fn set_ep0_double_buf(&mut self, val: bool)[src]

Device: EP0 single buffered = 0, double buffered = 1

pub const fn ep0_int_1buf(&self) -> bool[src]

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

pub fn set_ep0_int_1buf(&mut self, val: bool)[src]

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

pub const fn ep0_int_2buf(&self) -> bool[src]

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

pub fn set_ep0_int_2buf(&mut self, val: bool)[src]

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

pub const fn ep0_int_nak(&self) -> bool[src]

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

pub fn set_ep0_int_nak(&mut self, val: bool)[src]

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

pub const fn direct_en(&self) -> bool[src]

Direct bus drive enable

pub fn set_direct_en(&mut self, val: bool)[src]

Direct bus drive enable

pub const fn direct_dp(&self) -> bool[src]

Direct control of DP

pub fn set_direct_dp(&mut self, val: bool)[src]

Direct control of DP

pub const fn direct_dm(&self) -> bool[src]

Direct control of DM

pub fn set_direct_dm(&mut self, val: bool)[src]

Direct control of DM

pub const fn transceiver_pd(&self) -> bool[src]

Power down bus transceiver

pub fn set_transceiver_pd(&mut self, val: bool)[src]

Power down bus transceiver

pub const fn rpu_opt(&self) -> bool[src]

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

pub fn set_rpu_opt(&mut self, val: bool)[src]

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

pub const fn pullup_en(&self) -> bool[src]

Device: Enable pull up resistor

pub fn set_pullup_en(&mut self, val: bool)[src]

Device: Enable pull up resistor

pub const fn pulldown_en(&self) -> bool[src]

Host: Enable pull down resistors

pub fn set_pulldown_en(&mut self, val: bool)[src]

Host: Enable pull down resistors

pub const fn reset_bus(&self) -> bool[src]

Host: Reset bus

pub fn set_reset_bus(&mut self, val: bool)[src]

Host: Reset bus

pub const fn resume(&self) -> bool[src]

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

pub fn set_resume(&mut self, val: bool)[src]

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

pub const fn vbus_en(&self) -> bool[src]

Host: Enable VBUS

pub fn set_vbus_en(&mut self, val: bool)[src]

Host: Enable VBUS

pub const fn keep_alive_en(&self) -> bool[src]

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

pub fn set_keep_alive_en(&mut self, val: bool)[src]

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

pub const fn sof_en(&self) -> bool[src]

Host: Enable SOF generation (for full speed bus)

pub fn set_sof_en(&mut self, val: bool)[src]

Host: Enable SOF generation (for full speed bus)

pub const fn sof_sync(&self) -> bool[src]

Host: Delay packet(s) until after SOF

pub fn set_sof_sync(&mut self, val: bool)[src]

Host: Delay packet(s) until after SOF

pub const fn preamble_en(&self) -> bool[src]

Host: Preable enable for LS device on FS hub

pub fn set_preamble_en(&mut self, val: bool)[src]

Host: Preable enable for LS device on FS hub

pub const fn stop_trans(&self) -> bool[src]

Host: Stop transaction

pub fn set_stop_trans(&mut self, val: bool)[src]

Host: Stop transaction

pub const fn receive_data(&self) -> bool[src]

Host: Receive transaction (IN to host)

pub fn set_receive_data(&mut self, val: bool)[src]

Host: Receive transaction (IN to host)

pub const fn send_data(&self) -> bool[src]

Host: Send transaction (OUT from host)

pub fn set_send_data(&mut self, val: bool)[src]

Host: Send transaction (OUT from host)

pub const fn send_setup(&self) -> bool[src]

Host: Send Setup packet

pub fn set_send_setup(&mut self, val: bool)[src]

Host: Send Setup packet

pub const fn start_trans(&self) -> bool[src]

Host: Start transaction

pub fn set_start_trans(&mut self, val: bool)[src]

Host: Start transaction

Trait Implementations

impl Clone for SieCtrl[src]

impl Copy for SieCtrl[src]

impl Default for SieCtrl[src]

Auto Trait Implementations

impl Send for SieCtrl

impl Sync for SieCtrl

impl Unpin for SieCtrl

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.