Struct Ep0Csr
#[repr(transparent)]pub struct Ep0Csr(pub u8);
Expand description
USB Endpoint 0 Control and Status Register.
Tuple Fields§
§0: u8
Implementations§
§impl Ep0Csr
impl Ep0Csr
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 const fn in_pkt_rdy(&self) -> bool
pub const fn in_pkt_rdy(&self) -> bool
Indicates that an IN packet is ready for transmission.
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 for transmission.
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 fn set_data_end(&mut self, val: bool)
pub fn set_data_end(&mut self, val: bool)
Indicates the end of data stage in control transfer.
pub fn set_setup_end(&mut self, val: bool)
pub fn set_setup_end(&mut self, val: bool)
Indicates the end of a setup stage in control transfer.
pub const fn send_stall(&self) -> bool
pub const fn send_stall(&self) -> bool
Sends a STALL handshake.
pub fn set_send_stall(&mut self, val: bool)
pub fn set_send_stall(&mut self, val: bool)
Sends a STALL handshake.
pub const fn serviced_out_pkt_rdy(&self) -> bool
pub const fn serviced_out_pkt_rdy(&self) -> bool
Clears OutPktRdy flag.
pub fn set_serviced_out_pkt_rdy(&mut self, val: bool)
pub fn set_serviced_out_pkt_rdy(&mut self, val: bool)
Clears OutPktRdy flag.
pub const fn serviced_setup_end(&self) -> bool
pub const fn serviced_setup_end(&self) -> bool
Clears SetupEnd flag.
pub fn set_serviced_setup_end(&mut self, val: bool)
pub fn set_serviced_setup_end(&mut self, val: bool)
Clears SetupEnd flag.
Trait Implementations§
impl Copy for Ep0Csr
impl Eq for Ep0Csr
impl StructuralPartialEq for Ep0Csr
Auto Trait Implementations§
impl Freeze for Ep0Csr
impl RefUnwindSafe for Ep0Csr
impl Send for Ep0Csr
impl Sync for Ep0Csr
impl Unpin for Ep0Csr
impl UnwindSafe for Ep0Csr
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