pub struct Interrupt(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Interrupt
impl Interrupt
sourcepub fn i_vbusok(&self) -> bool
pub fn i_vbusok(&self) -> bool
Interrupt occurs when VBUS transitions through 4.5 V. This bit typically is used to recognize port partner during startup
sourcepub fn with_i_vbusok(self, value: bool) -> Self
pub fn with_i_vbusok(self, value: bool) -> Self
Interrupt occurs when VBUS transitions through 4.5 V. This bit typically is used to recognize port partner during startup
sourcepub fn set_i_vbusok(&mut self, value: bool)
pub fn set_i_vbusok(&mut self, value: bool)
Interrupt occurs when VBUS transitions through 4.5 V. This bit typically is used to recognize port partner during startup
sourcepub fn i_activity(&self) -> bool
pub fn i_activity(&self) -> bool
A change in the value of ACTIVITY of the CC bus has oc- curred
sourcepub fn with_i_activity(self, value: bool) -> Self
pub fn with_i_activity(self, value: bool) -> Self
A change in the value of ACTIVITY of the CC bus has oc- curred
sourcepub fn set_i_activity(&mut self, value: bool)
pub fn set_i_activity(&mut self, value: bool)
A change in the value of ACTIVITY of the CC bus has oc- curred
sourcepub fn i_comp_chng(&self) -> bool
pub fn i_comp_chng(&self) -> bool
A change in the value of COMP has occurred. Indicates se- lected CC line has tripped a threshold programmed into the MDAC
sourcepub fn with_i_comp_chng(self, value: bool) -> Self
pub fn with_i_comp_chng(self, value: bool) -> Self
A change in the value of COMP has occurred. Indicates se- lected CC line has tripped a threshold programmed into the MDAC
sourcepub fn set_i_comp_chng(&mut self, value: bool)
pub fn set_i_comp_chng(&mut self, value: bool)
A change in the value of COMP has occurred. Indicates se- lected CC line has tripped a threshold programmed into the MDAC
sourcepub fn i_crc_chk(&self) -> bool
pub fn i_crc_chk(&self) -> bool
The value of CRC_CHK newly valid. I.e. The validity of the incoming packet has been checked
sourcepub fn with_i_crc_chk(self, value: bool) -> Self
pub fn with_i_crc_chk(self, value: bool) -> Self
The value of CRC_CHK newly valid. I.e. The validity of the incoming packet has been checked
sourcepub fn set_i_crc_chk(&mut self, value: bool)
pub fn set_i_crc_chk(&mut self, value: bool)
The value of CRC_CHK newly valid. I.e. The validity of the incoming packet has been checked
sourcepub fn i_alert(&self) -> bool
pub fn i_alert(&self) -> bool
Alert software an error condition has occurred. An alert is caused by:
- TX_FULL: the transmit FIFO is full
- RX_FULL: the receive FIFO is full See Status1 bits
sourcepub fn with_i_alert(self, value: bool) -> Self
pub fn with_i_alert(self, value: bool) -> Self
Alert software an error condition has occurred. An alert is caused by:
- TX_FULL: the transmit FIFO is full
- RX_FULL: the receive FIFO is full See Status1 bits
sourcepub fn set_i_alert(&mut self, value: bool)
pub fn set_i_alert(&mut self, value: bool)
Alert software an error condition has occurred. An alert is caused by:
- TX_FULL: the transmit FIFO is full
- RX_FULL: the receive FIFO is full See Status1 bits
sourcepub fn i_wake(&self) -> bool
pub fn i_wake(&self) -> bool
Voltage on CC indicated a device attempting to attach. Software must then power up the clock and receiver blocks
sourcepub fn with_i_wake(self, value: bool) -> Self
pub fn with_i_wake(self, value: bool) -> Self
Voltage on CC indicated a device attempting to attach. Software must then power up the clock and receiver blocks
sourcepub fn set_i_wake(&mut self, value: bool)
pub fn set_i_wake(&mut self, value: bool)
Voltage on CC indicated a device attempting to attach. Software must then power up the clock and receiver blocks
sourcepub fn i_collision(&self) -> bool
pub fn i_collision(&self) -> bool
When a transmit was attempted, activity was detected on the active CC line. Transmit is not done. The packet is received normally
sourcepub fn with_i_collision(self, value: bool) -> Self
pub fn with_i_collision(self, value: bool) -> Self
When a transmit was attempted, activity was detected on the active CC line. Transmit is not done. The packet is received normally
sourcepub fn set_i_collision(&mut self, value: bool)
pub fn set_i_collision(&mut self, value: bool)
When a transmit was attempted, activity was detected on the active CC line. Transmit is not done. The packet is received normally
sourcepub fn with_i_bc_lvl(self, value: bool) -> Self
pub fn with_i_bc_lvl(self, value: bool) -> Self
A change in host requested current level has occurred
sourcepub fn set_i_bc_lvl(&mut self, value: bool)
pub fn set_i_bc_lvl(&mut self, value: bool)
A change in host requested current level has occurred
Trait Implementations§
source§impl PartialEq for Interrupt
impl PartialEq for Interrupt
impl Copy for Interrupt
impl Eq for Interrupt
impl StructuralPartialEq for Interrupt
Auto Trait Implementations§
impl Freeze for Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnwindSafe for Interrupt
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, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.