#[repr(transparent)]pub struct Endptctrl2(pub u32);Expand description
Endpoint Control 2.
Tuple Fields§
§0: u32Implementations§
Source§impl Endptctrl2
impl Endptctrl2
Sourcepub const fn rxs(&self) -> bool
pub const fn rxs(&self) -> bool
RX Endpoint Stall. Raw bit values: false (0) = Disable: Endpoint OK.; true (1) = Enable: Endpoint stalled.
Sourcepub const fn set_rxs(&mut self, val: bool)
pub const fn set_rxs(&mut self, val: bool)
RX Endpoint Stall. Raw bit values: false (0) = Disable: Endpoint OK.; true (1) = Enable: Endpoint stalled.
Sourcepub const fn rxd(&self) -> bool
pub const fn rxd(&self) -> bool
RX Endpoint Data Sink. Raw bit values: false (0) = Disable: Dual Port Memory Buffer/DMA Engine.
Sourcepub const fn set_rxd(&mut self, val: bool)
pub const fn set_rxd(&mut self, val: bool)
RX Endpoint Data Sink. Raw bit values: false (0) = Disable: Dual Port Memory Buffer/DMA Engine.
Sourcepub const fn rxi(&self) -> bool
pub const fn rxi(&self) -> bool
RX Data Toggle Inhibit. Raw bit values: false (0) = Disable: Disabled.; true (1) = Enable: Enabled.
Sourcepub const fn set_rxi(&mut self, val: bool)
pub const fn set_rxi(&mut self, val: bool)
RX Data Toggle Inhibit. Raw bit values: false (0) = Disable: Disabled.; true (1) = Enable: Enabled.
Sourcepub const fn rxr(&self) -> bool
pub const fn rxr(&self) -> bool
RX Data Toggle Reset (WS). Raw bit values: true (1) = W1: Reset PID sequence.
Sourcepub const fn set_rxr(&mut self, val: bool)
pub const fn set_rxr(&mut self, val: bool)
RX Data Toggle Reset (WS). Raw bit values: true (1) = W1: Reset PID sequence.
Sourcepub const fn rxe(&self) -> bool
pub const fn rxe(&self) -> bool
RX Endpoint Enable. Raw bit values: false (0) = Disable: Disabled.; true (1) = Enable: Enabled.
Sourcepub const fn set_rxe(&mut self, val: bool)
pub const fn set_rxe(&mut self, val: bool)
RX Endpoint Enable. Raw bit values: false (0) = Disable: Disabled.; true (1) = Enable: Enabled.
Sourcepub const fn txs(&self) -> bool
pub const fn txs(&self) -> bool
TX Endpoint Stall. Raw bit values: false (0) = Disable: Endpoint OK.; true (1) = Enable: Endpoint stalled.
Sourcepub const fn set_txs(&mut self, val: bool)
pub const fn set_txs(&mut self, val: bool)
TX Endpoint Stall. Raw bit values: false (0) = Disable: Endpoint OK.; true (1) = Enable: Endpoint stalled.
Sourcepub const fn txd(&self) -> bool
pub const fn txd(&self) -> bool
TX Endpoint Data Source. Raw bit values: false (0) = Dma: Dual Port Memory Buffer/DMA Engine.
Sourcepub const fn set_txd(&mut self, val: bool)
pub const fn set_txd(&mut self, val: bool)
TX Endpoint Data Source. Raw bit values: false (0) = Dma: Dual Port Memory Buffer/DMA Engine.
Sourcepub const fn txi(&self) -> bool
pub const fn txi(&self) -> bool
TX Data Toggle Inhibit. Raw bit values: false (0) = PidEn: PID sequencing enabled.; true (1) = PidDis: PID sequencing disabled.
Sourcepub const fn set_txi(&mut self, val: bool)
pub const fn set_txi(&mut self, val: bool)
TX Data Toggle Inhibit. Raw bit values: false (0) = PidEn: PID sequencing enabled.; true (1) = PidDis: PID sequencing disabled.
Sourcepub const fn txr(&self) -> bool
pub const fn txr(&self) -> bool
TX Data Toggle Reset (WS). Raw bit values: true (1) = W1: Reset PID sequence.
Sourcepub const fn set_txr(&mut self, val: bool)
pub const fn set_txr(&mut self, val: bool)
TX Data Toggle Reset (WS). Raw bit values: true (1) = W1: Reset PID sequence.
Trait Implementations§
Source§impl Clone for Endptctrl2
impl Clone for Endptctrl2
Source§fn clone(&self) -> Endptctrl2
fn clone(&self) -> Endptctrl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more