#[repr(transparent)]pub struct Endptctrl0(pub u32);Expand description
Endpoint Control 0. F70RM 44.6.1.40 (text line 116409). Device endpoint 0 only, permanently enabled as control endpoint; RXT, TXT, RXE, TXE are read-only in the diagram. Stall bits clear on setup reception and remain hardware-cleared until setup status is acknowledged (up to 50 clocks delay).
Tuple Fields§
§0: u32Implementations§
Source§impl Endptctrl0
impl Endptctrl0
Sourcepub const fn rxs(&self) -> bool
pub const fn rxs(&self) -> bool
RX Endpoint Stall. Raw encoding: 0b - Endpoint OK; 1b - Endpoint stalled.
Sourcepub const fn set_rxs(&mut self, val: bool)
pub const fn set_rxs(&mut self, val: bool)
RX Endpoint Stall. Raw encoding: 0b - Endpoint OK; 1b - Endpoint stalled.
Sourcepub const fn rxt(&self) -> u8
pub const fn rxt(&self) -> u8
RX Endpoint Type. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_rxt(&mut self, val: u8)
pub const fn set_rxt(&mut self, val: u8)
RX Endpoint Type. Read-only status/value; writes do not configure this field.
Sourcepub const fn rxe(&self) -> bool
pub const fn rxe(&self) -> bool
RX Endpoint Enable. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_rxe(&mut self, val: bool)
pub const fn set_rxe(&mut self, val: bool)
RX Endpoint Enable. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn txs(&self) -> bool
pub const fn txs(&self) -> bool
TX Endpoint Stall. Raw encoding: 0b - Endpoint OK; 1b - Endpoint stalled.
Sourcepub const fn set_txs(&mut self, val: bool)
pub const fn set_txs(&mut self, val: bool)
TX Endpoint Stall. Raw encoding: 0b - Endpoint OK; 1b - Endpoint stalled.
Sourcepub const fn txt(&self) -> u8
pub const fn txt(&self) -> u8
TX Endpoint Type. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_txt(&mut self, val: u8)
pub const fn set_txt(&mut self, val: u8)
TX Endpoint Type. Read-only status/value; writes do not configure this field.
Trait Implementations§
Source§impl Clone for Endptctrl0
impl Clone for Endptctrl0
Source§fn clone(&self) -> Endptctrl0
fn clone(&self) -> Endptctrl0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more