Struct InCsr1
#[repr(transparent)]pub struct InCsr1(pub u8);
Expand description
USB IN Endpoint Control and Status Register 1.
Tuple Fields§
§0: u8
Implementations§
§impl InCsr1
impl InCsr1
pub const fn in_pkt_rdy(&self) -> bool
pub const fn in_pkt_rdy(&self) -> bool
Indicates that an IN packet is ready to be sent.
pub fn set_in_pkt_rdy(&mut self, val: bool)
pub fn set_in_pkt_rdy(&mut self, val: bool)
Indicates that an IN packet is ready to be sent.
pub const fn fifo_not_empty(&self) -> bool
pub const fn fifo_not_empty(&self) -> bool
Indicates that the FIFO contains data.
pub fn set_fifo_not_empty(&mut self, val: bool)
pub fn set_fifo_not_empty(&mut self, val: bool)
Indicates that the FIFO contains data.
pub fn set_underrun(&mut self, val: bool)
pub fn set_underrun(&mut self, val: bool)
Indicates that an underrun condition occurred.
pub const fn flush_fifo(&self) -> bool
pub const fn flush_fifo(&self) -> bool
Flushes the FIFO content.
pub fn set_flush_fifo(&mut self, val: bool)
pub fn set_flush_fifo(&mut self, val: bool)
Flushes the FIFO content.
pub const fn send_stall(&self) -> bool
pub const fn send_stall(&self) -> bool
Sends a STALL handshake for the IN endpoint.
pub fn set_send_stall(&mut self, val: bool)
pub fn set_send_stall(&mut self, val: bool)
Sends a STALL handshake for the IN endpoint.
pub const fn sent_stall(&self) -> bool
pub const fn sent_stall(&self) -> bool
Indicates that a STALL handshake was sent.
pub fn set_sent_stall(&mut self, val: bool)
pub fn set_sent_stall(&mut self, val: bool)
Indicates that a STALL handshake was sent.
pub const fn clr_data_tog(&self) -> bool
pub const fn clr_data_tog(&self) -> bool
Clears the endpoint’s data toggle bit.
pub fn set_clr_data_tog(&mut self, val: bool)
pub fn set_clr_data_tog(&mut self, val: bool)
Clears the endpoint’s data toggle bit.
Trait Implementations§
impl Copy for InCsr1
impl Eq for InCsr1
impl StructuralPartialEq for InCsr1
Auto Trait Implementations§
impl Freeze for InCsr1
impl RefUnwindSafe for InCsr1
impl Send for InCsr1
impl Sync for InCsr1
impl Unpin for InCsr1
impl UnwindSafe for InCsr1
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