pub struct Control3(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Control3
impl Control3
sourcepub fn with_send_hard_reset(self, value: bool) -> Self
pub fn with_send_hard_reset(self, value: bool) -> Self
Send a hard reset packet (highest priority)
sourcepub fn set_send_hard_reset(&mut self, value: bool)
pub fn set_send_hard_reset(&mut self, value: bool)
Send a hard reset packet (highest priority)
sourcepub fn bist_tmode(&self) -> bool
pub fn bist_tmode(&self) -> bool
BIST mode when enabled. Receive FIFO is cleared immediately after sending GoodCRC response.
Normal operation when disabled; all packets are treated as usual.
sourcepub fn with_bist_tmode(self, value: bool) -> Self
pub fn with_bist_tmode(self, value: bool) -> Self
BIST mode when enabled. Receive FIFO is cleared immediately after sending GoodCRC response.
Normal operation when disabled; all packets are treated as usual.
sourcepub fn set_bist_tmode(&mut self, value: bool)
pub fn set_bist_tmode(&mut self, value: bool)
BIST mode when enabled. Receive FIFO is cleared immediately after sending GoodCRC response.
Normal operation when disabled; all packets are treated as usual.
sourcepub fn auto_hardreset(&self) -> bool
pub fn auto_hardreset(&self) -> bool
Enable automatic hard reset packet if soft reset fail
sourcepub fn with_auto_hardreset(self, value: bool) -> Self
pub fn with_auto_hardreset(self, value: bool) -> Self
Enable automatic hard reset packet if soft reset fail
sourcepub fn set_auto_hardreset(&mut self, value: bool)
pub fn set_auto_hardreset(&mut self, value: bool)
Enable automatic hard reset packet if soft reset fail
sourcepub fn auto_softreset(&self) -> bool
pub fn auto_softreset(&self) -> bool
Enable automatic soft reset packet if retries fail
sourcepub fn with_auto_softreset(self, value: bool) -> Self
pub fn with_auto_softreset(self, value: bool) -> Self
Enable automatic soft reset packet if retries fail
sourcepub fn set_auto_softreset(&mut self, value: bool)
pub fn set_auto_softreset(&mut self, value: bool)
Enable automatic soft reset packet if retries fail
sourcepub fn n_retries(&self) -> u8
pub fn n_retries(&self) -> u8
11
: Three retries of packet (four total packets sent)10
: Two retries of packet (three total packets sent)01
: One retry of packet (two total packets sent)00
: No retries (similar to disabling auto retry)
sourcepub fn with_n_retries(self, value: u8) -> Self
pub fn with_n_retries(self, value: u8) -> Self
11
: Three retries of packet (four total packets sent)10
: Two retries of packet (three total packets sent)01
: One retry of packet (two total packets sent)00
: No retries (similar to disabling auto retry)
sourcepub fn set_n_retries(&mut self, value: u8)
pub fn set_n_retries(&mut self, value: u8)
11
: Three retries of packet (four total packets sent)10
: Two retries of packet (three total packets sent)01
: One retry of packet (two total packets sent)00
: No retries (similar to disabling auto retry)
sourcepub fn auto_retry(&self) -> bool
pub fn auto_retry(&self) -> bool
Enable automatic packet retries if GoodCRC is not received
sourcepub fn with_auto_retry(self, value: bool) -> Self
pub fn with_auto_retry(self, value: bool) -> Self
Enable automatic packet retries if GoodCRC is not received
sourcepub fn set_auto_retry(&mut self, value: bool)
pub fn set_auto_retry(&mut self, value: bool)
Enable automatic packet retries if GoodCRC is not received
Trait Implementations§
source§impl PartialEq for Control3
impl PartialEq for Control3
impl Copy for Control3
impl Eq for Control3
impl StructuralPartialEq for Control3
Auto Trait Implementations§
impl Freeze for Control3
impl RefUnwindSafe for Control3
impl Send for Control3
impl Sync for Control3
impl Unpin for Control3
impl UnwindSafe for Control3
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.