#[repr(transparent)]pub struct Int(pub u32);
Expand description
Interrupt Force
Tuple Fields§
§0: u32
Implementations§
source§impl Int
impl Int
sourcepub const fn host_conn_dis(&self) -> bool
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
sourcepub fn set_host_conn_dis(&mut self, val: bool)
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
sourcepub const fn host_resume(&self) -> bool
pub const fn host_resume(&self) -> bool
Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME_REMOTE
sourcepub fn set_host_resume(&mut self, val: bool)
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
sourcepub const fn host_sof(&self) -> bool
pub const fn host_sof(&self) -> bool
Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD
sourcepub fn set_host_sof(&mut self, val: bool)
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
sourcepub const fn trans_complete(&self) -> bool
pub const fn trans_complete(&self) -> bool
Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
sourcepub fn set_trans_complete(&mut self, val: bool)
pub fn set_trans_complete(&mut self, val: bool)
Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
sourcepub const fn buff_status(&self) -> bool
pub const fn buff_status(&self) -> bool
Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.
sourcepub fn set_buff_status(&mut self, val: bool)
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.
sourcepub const fn error_data_seq(&self) -> bool
pub const fn error_data_seq(&self) -> bool
Source: SIE_STATUS.DATA_SEQ_ERROR
sourcepub fn set_error_data_seq(&mut self, val: bool)
pub fn set_error_data_seq(&mut self, val: bool)
Source: SIE_STATUS.DATA_SEQ_ERROR
sourcepub const fn error_rx_timeout(&self) -> bool
pub const fn error_rx_timeout(&self) -> bool
Source: SIE_STATUS.RX_TIMEOUT
sourcepub fn set_error_rx_timeout(&mut self, val: bool)
pub fn set_error_rx_timeout(&mut self, val: bool)
Source: SIE_STATUS.RX_TIMEOUT
sourcepub const fn error_rx_overflow(&self) -> bool
pub const fn error_rx_overflow(&self) -> bool
Source: SIE_STATUS.RX_OVERFLOW
sourcepub fn set_error_rx_overflow(&mut self, val: bool)
pub fn set_error_rx_overflow(&mut self, val: bool)
Source: SIE_STATUS.RX_OVERFLOW
sourcepub const fn error_bit_stuff(&self) -> bool
pub const fn error_bit_stuff(&self) -> bool
Source: SIE_STATUS.BIT_STUFF_ERROR
sourcepub fn set_error_bit_stuff(&mut self, val: bool)
pub fn set_error_bit_stuff(&mut self, val: bool)
Source: SIE_STATUS.BIT_STUFF_ERROR
sourcepub fn set_error_crc(&mut self, val: bool)
pub fn set_error_crc(&mut self, val: bool)
Source: SIE_STATUS.CRC_ERROR
sourcepub const fn vbus_detect(&self) -> bool
pub const fn vbus_detect(&self) -> bool
Source: SIE_STATUS.VBUS_DETECT
sourcepub fn set_vbus_detect(&mut self, val: bool)
pub fn set_vbus_detect(&mut self, val: bool)
Source: SIE_STATUS.VBUS_DETECT
sourcepub fn set_bus_reset(&mut self, val: bool)
pub fn set_bus_reset(&mut self, val: bool)
Source: SIE_STATUS.BUS_RESET
sourcepub const fn dev_conn_dis(&self) -> bool
pub const fn dev_conn_dis(&self) -> bool
Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
sourcepub fn set_dev_conn_dis(&mut self, val: bool)
pub fn set_dev_conn_dis(&mut self, val: bool)
Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
sourcepub const fn dev_suspend(&self) -> bool
pub const fn dev_suspend(&self) -> bool
Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
sourcepub fn set_dev_suspend(&mut self, val: bool)
pub fn set_dev_suspend(&mut self, val: bool)
Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
sourcepub const fn dev_resume_from_host(&self) -> bool
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
sourcepub fn set_dev_resume_from_host(&mut self, val: bool)
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
sourcepub fn set_setup_req(&mut self, val: bool)
pub fn set_setup_req(&mut self, val: bool)
Device. Source: SIE_STATUS.SETUP_REC
sourcepub const fn dev_sof(&self) -> bool
pub const fn dev_sof(&self) -> bool
Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD
sourcepub fn set_dev_sof(&mut self, val: bool)
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
sourcepub const fn abort_done(&self) -> bool
pub const fn abort_done(&self) -> bool
Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.
sourcepub fn set_abort_done(&mut self, val: bool)
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.
sourcepub const fn ep_stall_nak(&self) -> bool
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.
sourcepub fn set_ep_stall_nak(&mut self, val: bool)
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§
impl Copy for Int
impl Eq for Int
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)