rp-pac

Crates

git

Versions

rp2040

Flavors

Struct rp_pac::usb::regs::Int

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

Interrupt Force

Tuple Fields§

§0: u32

Implementations§

source§

impl Int

source

pub const fn host_conn_dis(&self) -> bool

Host: raised when a device is connected or disconnected (i.e. when SIE_STATUS.SPEED changes). Cleared by writing to SIE_STATUS.SPEED

source

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

Host: raised when a device is connected or disconnected (i.e. when SIE_STATUS.SPEED changes). Cleared by writing to SIE_STATUS.SPEED

source

pub const fn host_resume(&self) -> bool

Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME_REMOTE

source

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

Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME_REMOTE

source

pub const fn host_sof(&self) -> bool

Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

source

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

Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

source

pub const fn trans_complete(&self) -> bool

Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

source

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

Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

source

pub const fn buff_status(&self) -> bool

Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

source

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

Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

source

pub const fn error_data_seq(&self) -> bool

Source: SIE_STATUS.DATA_SEQ_ERROR

source

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

Source: SIE_STATUS.DATA_SEQ_ERROR

source

pub const fn error_rx_timeout(&self) -> bool

Source: SIE_STATUS.RX_TIMEOUT

source

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

Source: SIE_STATUS.RX_TIMEOUT

source

pub const fn error_rx_overflow(&self) -> bool

Source: SIE_STATUS.RX_OVERFLOW

source

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

Source: SIE_STATUS.RX_OVERFLOW

source

pub const fn error_bit_stuff(&self) -> bool

Source: SIE_STATUS.BIT_STUFF_ERROR

source

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

Source: SIE_STATUS.BIT_STUFF_ERROR

source

pub const fn error_crc(&self) -> bool

Source: SIE_STATUS.CRC_ERROR

source

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

Source: SIE_STATUS.CRC_ERROR

source

pub const fn stall(&self) -> bool

Source: SIE_STATUS.STALL_REC

source

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

Source: SIE_STATUS.STALL_REC

source

pub const fn vbus_detect(&self) -> bool

Source: SIE_STATUS.VBUS_DETECT

source

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

Source: SIE_STATUS.VBUS_DETECT

source

pub const fn bus_reset(&self) -> bool

Source: SIE_STATUS.BUS_RESET

source

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

Source: SIE_STATUS.BUS_RESET

source

pub const fn dev_conn_dis(&self) -> bool

Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

source

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

Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

source

pub const fn dev_suspend(&self) -> bool

Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

source

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

Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

source

pub const fn dev_resume_from_host(&self) -> bool

Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME_REMOTE

source

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

Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME_REMOTE

source

pub const fn setup_req(&self) -> bool

Device. Source: SIE_STATUS.SETUP_REC

source

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

Device. Source: SIE_STATUS.SETUP_REC

source

pub const fn dev_sof(&self) -> bool

Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

source

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

Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

source

pub const fn abort_done(&self) -> bool

Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

source

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

Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

source

pub const fn ep_stall_nak(&self) -> bool

Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

source

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

Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

Trait Implementations§

source§

impl Clone for Int

source§

fn clone(&self) -> Int

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 Int

source§

fn default() -> Int

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

impl PartialEq for Int

source§

fn eq(&self, other: &Int) -> 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 Int

source§

impl Eq for Int

source§

impl StructuralPartialEq for Int

Auto Trait Implementations§

§

impl Freeze for Int

§

impl RefUnwindSafe for Int

§

impl Send for Int

§

impl Sync for Int

§

impl Unpin for Int

§

impl UnwindSafe for Int

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.