Struct OutCsr1
#[repr(transparent)]pub struct OutCsr1(pub u8);
Expand description
USB OUT Endpoint Control and Status Register 1.
Tuple Fields§
§0: u8
Implementations§
§impl OutCsr1
impl OutCsr1
pub const fn out_pkt_rdy(&self) -> bool
pub const fn out_pkt_rdy(&self) -> bool
Indicates that an OUT packet has been received.
pub fn set_out_pkt_rdy(&mut self, val: bool)
pub fn set_out_pkt_rdy(&mut self, val: bool)
Indicates that an OUT packet has been received.
pub fn set_fifo_full(&mut self, val: bool)
pub fn set_fifo_full(&mut self, val: bool)
Indicates that the FIFO is full.
pub fn set_overrun(&mut self, val: bool)
pub fn set_overrun(&mut self, val: bool)
Indicates that an overrun condition occurred.
pub const fn data_error(&self) -> bool
pub const fn data_error(&self) -> bool
Indicates that a data error occurred.
pub fn set_data_error(&mut self, val: bool)
pub fn set_data_error(&mut self, val: bool)
Indicates that a data error 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 OUT 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 OUT 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 OutCsr1
impl Eq for OutCsr1
impl StructuralPartialEq for OutCsr1
Auto Trait Implementations§
impl Freeze for OutCsr1
impl RefUnwindSafe for OutCsr1
impl Send for OutCsr1
impl Sync for OutCsr1
impl Unpin for OutCsr1
impl UnwindSafe for OutCsr1
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