Struct fusb302b::registers::InterruptA
source · pub struct InterruptA(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl InterruptA
impl InterruptA
sourcepub fn i_ocp_temp(&self) -> bool
pub fn i_ocp_temp(&self) -> bool
Interrupt from either a OCP event on one of the VCONN switches or an over-temperature event
sourcepub fn with_i_ocp_temp(self, value: bool) -> Self
pub fn with_i_ocp_temp(self, value: bool) -> Self
Interrupt from either a OCP event on one of the VCONN switches or an over-temperature event
sourcepub fn set_i_ocp_temp(&mut self, value: bool)
pub fn set_i_ocp_temp(&mut self, value: bool)
Interrupt from either a OCP event on one of the VCONN switches or an over-temperature event
sourcepub fn i_togdone(&self) -> bool
pub fn i_togdone(&self) -> bool
Interrupt indicating the TOGGLE functionality was terminated because a device was detected
sourcepub fn with_i_togdone(self, value: bool) -> Self
pub fn with_i_togdone(self, value: bool) -> Self
Interrupt indicating the TOGGLE functionality was terminated because a device was detected
sourcepub fn set_i_togdone(&mut self, value: bool)
pub fn set_i_togdone(&mut self, value: bool)
Interrupt indicating the TOGGLE functionality was terminated because a device was detected
sourcepub fn i_softfail(&self) -> bool
pub fn i_softfail(&self) -> bool
Interrupt from automatic soft reset packets with retries have failed
sourcepub fn with_i_softfail(self, value: bool) -> Self
pub fn with_i_softfail(self, value: bool) -> Self
Interrupt from automatic soft reset packets with retries have failed
sourcepub fn set_i_softfail(&mut self, value: bool)
pub fn set_i_softfail(&mut self, value: bool)
Interrupt from automatic soft reset packets with retries have failed
sourcepub fn i_retryfail(&self) -> bool
pub fn i_retryfail(&self) -> bool
Interrupt from automatic packet retries have failed
sourcepub fn with_i_retryfail(self, value: bool) -> Self
pub fn with_i_retryfail(self, value: bool) -> Self
Interrupt from automatic packet retries have failed
sourcepub fn set_i_retryfail(&mut self, value: bool)
pub fn set_i_retryfail(&mut self, value: bool)
Interrupt from automatic packet retries have failed
sourcepub fn i_hardsent(&self) -> bool
pub fn i_hardsent(&self) -> bool
Interrupt from successfully sending a hard reset ordered set
sourcepub fn with_i_hardsent(self, value: bool) -> Self
pub fn with_i_hardsent(self, value: bool) -> Self
Interrupt from successfully sending a hard reset ordered set
sourcepub fn set_i_hardsent(&mut self, value: bool)
pub fn set_i_hardsent(&mut self, value: bool)
Interrupt from successfully sending a hard reset ordered set
sourcepub fn i_txsent(&self) -> bool
pub fn i_txsent(&self) -> bool
Interrupt to alert that we sent a packet that was acknowledged with a GoodCRC response packet
sourcepub fn with_i_txsent(self, value: bool) -> Self
pub fn with_i_txsent(self, value: bool) -> Self
Interrupt to alert that we sent a packet that was acknowledged with a GoodCRC response packet
sourcepub fn set_i_txsent(&mut self, value: bool)
pub fn set_i_txsent(&mut self, value: bool)
Interrupt to alert that we sent a packet that was acknowledged with a GoodCRC response packet
sourcepub fn with_i_softrst(self, value: bool) -> Self
pub fn with_i_softrst(self, value: bool) -> Self
Received a soft reset packet
sourcepub fn set_i_softrst(&mut self, value: bool)
pub fn set_i_softrst(&mut self, value: bool)
Received a soft reset packet
sourcepub fn with_i_hardrst(self, value: bool) -> Self
pub fn with_i_hardrst(self, value: bool) -> Self
Received a hard reset ordered set
sourcepub fn set_i_hardrst(&mut self, value: bool)
pub fn set_i_hardrst(&mut self, value: bool)
Received a hard reset ordered set
Trait Implementations§
source§impl Clone for InterruptA
impl Clone for InterruptA
source§fn clone(&self) -> InterruptA
fn clone(&self) -> InterruptA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InterruptA
impl Default for InterruptA
source§fn default() -> InterruptA
fn default() -> InterruptA
source§impl From<InterruptA> for u8
impl From<InterruptA> for u8
source§fn from(other: InterruptA) -> Self
fn from(other: InterruptA) -> Self
source§impl From<u8> for InterruptA
impl From<u8> for InterruptA
source§impl PartialEq for InterruptA
impl PartialEq for InterruptA
source§fn eq(&self, other: &InterruptA) -> bool
fn eq(&self, other: &InterruptA) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for InterruptA
impl Eq for InterruptA
impl StructuralPartialEq for InterruptA
Auto Trait Implementations§
impl Freeze for InterruptA
impl RefUnwindSafe for InterruptA
impl Send for InterruptA
impl Sync for InterruptA
impl Unpin for InterruptA
impl UnwindSafe for InterruptA
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.