#[repr(transparent)]pub struct Endptctrl(pub u32);Expand description
Endpoint Control 1. F70RM 44.6.1.41 (text line 116553). Device endpoints 1..7 (array index 0 is endpoint 1). RXT/TXT: 0 control, 1 isochronous, 2 bulk, 3 interrupt. RXR/TXR are write-only data-toggle-reset commands. RXD/TXD must remain 0. RXI/TXI are test controls and must remain 0 for normal operation. Configure before enabling. RM setup-stall prose says both becomes 1 and hardware writes 0; this conflict is not resolved here.
Tuple Fields§
§0: u32Implementations§
Source§impl Endptctrl
impl Endptctrl
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. Raw encoding: 00b - Control; 01b - Isochronous; 10b - Bulk; 11b - Interrupt.
Sourcepub const fn set_rxt(&mut self, val: u8)
pub const fn set_rxt(&mut self, val: u8)
RX Endpoint Type. Raw encoding: 00b - Control; 01b - Isochronous; 10b - Bulk; 11b - Interrupt.
Sourcepub const fn rxi(&self) -> bool
pub const fn rxi(&self) -> bool
RX Data Toggle Inhibit. Raw encoding: 0b - Allow; 1b - Inhibit.
Sourcepub const fn set_rxi(&mut self, val: bool)
pub const fn set_rxi(&mut self, val: bool)
RX Data Toggle Inhibit. Raw encoding: 0b - Allow; 1b - Inhibit.
Sourcepub const fn rxr(&self) -> bool
pub const fn rxr(&self) -> bool
RX Data Toggle Reset. Write-only command. Raw encoding: 0b - Does not reset; 1b - Resets.
Sourcepub const fn set_rxr(&mut self, val: bool)
pub const fn set_rxr(&mut self, val: bool)
RX Data Toggle Reset. Write-only command. Raw encoding: 0b - Does not reset; 1b - Resets.
Sourcepub const fn set_rxe(&mut self, val: bool)
pub const fn set_rxe(&mut self, val: bool)
RX Endpoint Enable. 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. Raw encoding: 00b - Control; 01b - Isochronous; 10b - Bulk; 11b - Interrupt.
Sourcepub const fn set_txt(&mut self, val: u8)
pub const fn set_txt(&mut self, val: u8)
TX Endpoint Type. Raw encoding: 00b - Control; 01b - Isochronous; 10b - Bulk; 11b - Interrupt.
Sourcepub const fn txi(&self) -> bool
pub const fn txi(&self) -> bool
TX Data Toggle Inhibit. Raw encoding: 0b - Allow; 1b - Inhibit.
Sourcepub const fn set_txi(&mut self, val: bool)
pub const fn set_txi(&mut self, val: bool)
TX Data Toggle Inhibit. Raw encoding: 0b - Allow; 1b - Inhibit.
Sourcepub const fn txr(&self) -> bool
pub const fn txr(&self) -> bool
TX Data Toggle Reset. Write-only command. Raw encoding: 0b - Does not reset; 1b - Resets.