rp-pac

Crates

git

Versions

rp2040

Flavors

Struct rp_pac::usb::regs::SieCtrl

source ·
#[repr(transparent)]
pub struct SieCtrl(pub u32);
Expand description

SIE control register

Tuple Fields§

§0: u32

Implementations§

source§

impl SieCtrl

source

pub const fn start_trans(&self) -> bool

Host: Start transaction

source

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

Host: Start transaction

source

pub const fn send_setup(&self) -> bool

Host: Send Setup packet

source

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

Host: Send Setup packet

source

pub const fn send_data(&self) -> bool

Host: Send transaction (OUT from host)

source

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

Host: Send transaction (OUT from host)

source

pub const fn receive_data(&self) -> bool

Host: Receive transaction (IN to host)

source

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

Host: Receive transaction (IN to host)

source

pub const fn stop_trans(&self) -> bool

Host: Stop transaction

source

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

Host: Stop transaction

source

pub const fn preamble_en(&self) -> bool

Host: Preable enable for LS device on FS hub

source

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

Host: Preable enable for LS device on FS hub

source

pub const fn sof_sync(&self) -> bool

Host: Delay packet(s) until after SOF

source

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

Host: Delay packet(s) until after SOF

source

pub const fn sof_en(&self) -> bool

Host: Enable SOF generation (for full speed bus)

source

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

Host: Enable SOF generation (for full speed bus)

source

pub const fn keep_alive_en(&self) -> bool

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

source

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

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

source

pub const fn vbus_en(&self) -> bool

Host: Enable VBUS

source

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

Host: Enable VBUS

source

pub const fn resume(&self) -> bool

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

source

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

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

source

pub const fn reset_bus(&self) -> bool

Host: Reset bus

source

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

Host: Reset bus

source

pub const fn pulldown_en(&self) -> bool

Host: Enable pull down resistors

source

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

Host: Enable pull down resistors

source

pub const fn pullup_en(&self) -> bool

Device: Enable pull up resistor

source

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

Device: Enable pull up resistor

source

pub const fn rpu_opt(&self) -> bool

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

source

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

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

source

pub const fn transceiver_pd(&self) -> bool

Power down bus transceiver

source

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

Power down bus transceiver

source

pub const fn direct_dm(&self) -> bool

Direct control of DM

source

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

Direct control of DM

source

pub const fn direct_dp(&self) -> bool

Direct control of DP

source

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

Direct control of DP

source

pub const fn direct_en(&self) -> bool

Direct bus drive enable

source

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

Direct bus drive enable

source

pub const fn ep0_int_nak(&self) -> bool

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

source

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

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

source

pub const fn ep0_int_2buf(&self) -> bool

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

source

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

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

source

pub const fn ep0_int_1buf(&self) -> bool

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

source

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

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

source

pub const fn ep0_double_buf(&self) -> bool

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

source

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

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

source

pub const fn ep0_int_stall(&self) -> bool

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL

source

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

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL

Trait Implementations§

source§

impl Clone for SieCtrl

source§

fn clone(&self) -> SieCtrl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for SieCtrl

source§

fn default() -> SieCtrl

Returns the “default value” for a type. Read more
source§

impl PartialEq for SieCtrl

source§

fn eq(&self, other: &SieCtrl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SieCtrl

source§

impl Eq for SieCtrl

source§

impl StructuralPartialEq for SieCtrl

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.