#[repr(transparent)]pub struct NakPoll(pub u32);
Expand description
Used by the host controller. Sets the wait time in microseconds before trying again if the device replies with a NAK.
Tuple Fields§
§0: u32
Implementations§
Source§impl NakPoll
impl NakPoll
Sourcepub fn set_delay_ls(&mut self, val: u16)
pub fn set_delay_ls(&mut self, val: u16)
NAK polling interval for a low speed device
Sourcepub const fn retry_count_lo(&self) -> u8
pub const fn retry_count_lo(&self) -> u8
Bits 5:0 of nak_retry_count
Sourcepub fn set_retry_count_lo(&mut self, val: u8)
pub fn set_retry_count_lo(&mut self, val: u8)
Bits 5:0 of nak_retry_count
Sourcepub fn set_delay_fs(&mut self, val: u16)
pub fn set_delay_fs(&mut self, val: u16)
NAK polling interval for a full speed device
Sourcepub const fn stop_epx_on_nak(&self) -> bool
pub const fn stop_epx_on_nak(&self) -> bool
Stop polling epx when a nak is received
Sourcepub fn set_stop_epx_on_nak(&mut self, val: bool)
pub fn set_stop_epx_on_nak(&mut self, val: bool)
Stop polling epx when a nak is received
Sourcepub const fn epx_stopped_on_nak(&self) -> bool
pub const fn epx_stopped_on_nak(&self) -> bool
EPX polling has stopped because a nak was received
Sourcepub fn set_epx_stopped_on_nak(&mut self, val: bool)
pub fn set_epx_stopped_on_nak(&mut self, val: bool)
EPX polling has stopped because a nak was received
Sourcepub const fn retry_count_hi(&self) -> u8
pub const fn retry_count_hi(&self) -> u8
Bits 9:6 of nak_retry count
Sourcepub fn set_retry_count_hi(&mut self, val: u8)
pub fn set_retry_count_hi(&mut self, val: u8)
Bits 9:6 of nak_retry count
Trait Implementations§
impl Copy for NakPoll
impl Eq for NakPoll
impl StructuralPartialEq for NakPoll
Auto Trait Implementations§
impl Freeze for NakPoll
impl RefUnwindSafe for NakPoll
impl Send for NakPoll
impl Sync for NakPoll
impl Unpin for NakPoll
impl UnwindSafe for NakPoll
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
Mutably borrows from an owned value. Read more