#[repr(transparent)]pub struct Int(pub u32);
Expand description
Interrupt Enable
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.