#[repr(transparent)]pub struct Endptctrl0(pub u32);Expand description
Endpoint Control0
Tuple Fields§
§0: u32Implementations§
Source§impl Endptctrl0
impl Endptctrl0
Sourcepub const fn rxt(&self) -> u8
pub const fn rxt(&self) -> u8
RX Endpoint Type - Read/Write 00 Control Endpoint0 is fixed as a Control End Point.
Sourcepub const fn set_rxt(&mut self, val: u8)
pub const fn set_rxt(&mut self, val: u8)
RX Endpoint Type - Read/Write 00 Control Endpoint0 is fixed as a Control End Point.
Sourcepub const fn set_rxe(&mut self, val: bool)
pub const fn set_rxe(&mut self, val: bool)
RX Endpoint Enable 1 Enabled Endpoint0 is always enabled.
Sourcepub const fn txs(&self) -> bool
pub const fn txs(&self) -> bool
TX Endpoint Stall - Read/Write 0 End Point OK [Default] 1 End Point Stalled Software can write a one to this bit to force the endpoint to return a STALL handshake to the Host
Sourcepub const fn set_txs(&mut self, val: bool)
pub const fn set_txs(&mut self, val: bool)
TX Endpoint Stall - Read/Write 0 End Point OK [Default] 1 End Point Stalled Software can write a one to this bit to force the endpoint to return a STALL handshake to the Host
Sourcepub const fn txt(&self) -> u8
pub const fn txt(&self) -> u8
TX Endpoint Type - Read/Write 00 - Control Endpoint0 is fixed as a Control End Point.
Trait Implementations§
Source§impl Clone for Endptctrl0
impl Clone for Endptctrl0
Source§fn clone(&self) -> Endptctrl0
fn clone(&self) -> Endptctrl0
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Endptctrl0
impl Debug for Endptctrl0
Source§impl Default for Endptctrl0
impl Default for Endptctrl0
Source§fn default() -> Endptctrl0
fn default() -> Endptctrl0
Returns the “default value” for a type. Read more
Source§impl PartialEq for Endptctrl0
impl PartialEq for Endptctrl0
impl Copy for Endptctrl0
impl Eq for Endptctrl0
impl StructuralPartialEq for Endptctrl0
Auto Trait Implementations§
impl Freeze for Endptctrl0
impl RefUnwindSafe for Endptctrl0
impl Send for Endptctrl0
impl Sync for Endptctrl0
impl Unpin for Endptctrl0
impl UnwindSafe for Endptctrl0
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