#[repr(transparent)]pub struct Endptctrl1(pub u32);Expand description
Endpoint Control 1
Tuple Fields§
§0: u32Implementations§
Source§impl Endptctrl1
impl Endptctrl1
Sourcepub const fn rxd(&self) -> bool
pub const fn rxd(&self) -> bool
RX Endpoint Data Sink - Read/Write 0 Dual Port Memory Buffer/DMA Engine [Default] Should always be written as zero
Sourcepub const fn set_rxd(&mut self, val: bool)
pub const fn set_rxd(&mut self, val: bool)
RX Endpoint Data Sink - Read/Write 0 Dual Port Memory Buffer/DMA Engine [Default] Should always be written as zero
Sourcepub const fn rxt(&self) -> u8
pub const fn rxt(&self) -> u8
RX Endpoint Type - Read/Write 00 Control 01 Isochronous 10 Bulk 11 Interrupt
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 01 Isochronous 10 Bulk 11 Interrupt
Sourcepub const fn rxi(&self) -> bool
pub const fn rxi(&self) -> bool
RX Data Toggle Inhibit 0 Disabled [Default] 1 Enabled This bit is only used for test and should always be written as zero
Sourcepub const fn set_rxi(&mut self, val: bool)
pub const fn set_rxi(&mut self, val: bool)
RX Data Toggle Inhibit 0 Disabled [Default] 1 Enabled This bit is only used for test and should always be written as zero
Sourcepub const fn rxr(&self) -> bool
pub const fn rxr(&self) -> bool
RX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID’s between the host and device
Sourcepub const fn set_rxr(&mut self, val: bool)
pub const fn set_rxr(&mut self, val: bool)
RX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID’s between the host and device
Sourcepub const fn rxe(&self) -> bool
pub const fn rxe(&self) -> bool
RX Endpoint Enable 0 Disabled [Default] 1 Enabled An Endpoint should be enabled only after it has been configured
Sourcepub const fn set_rxe(&mut self, val: bool)
pub const fn set_rxe(&mut self, val: bool)
RX Endpoint Enable 0 Disabled [Default] 1 Enabled An Endpoint should be enabled only after it has been configured
Sourcepub const fn txs(&self) -> bool
pub const fn txs(&self) -> bool
TX Endpoint Stall - Read/Write 0 End Point OK 1 End Point Stalled This bit will be cleared automatically upon receipt of a SETUP request if this Endpoint is configured as a Control Endpoint and this bit will continue to be cleared by hardware until the associated ENDPTSETUPSTAT bit is cleared
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 1 End Point Stalled This bit will be cleared automatically upon receipt of a SETUP request if this Endpoint is configured as a Control Endpoint and this bit will continue to be cleared by hardware until the associated ENDPTSETUPSTAT bit is cleared
Sourcepub const fn txd(&self) -> bool
pub const fn txd(&self) -> bool
TX Endpoint Data Source - Read/Write 0 Dual Port Memory Buffer/DMA Engine [DEFAULT] Should always be written as 0
Sourcepub const fn set_txd(&mut self, val: bool)
pub const fn set_txd(&mut self, val: bool)
TX Endpoint Data Source - Read/Write 0 Dual Port Memory Buffer/DMA Engine [DEFAULT] Should always be written as 0
Sourcepub const fn txt(&self) -> u8
pub const fn txt(&self) -> u8
TX Endpoint Type - Read/Write 00 Control 01 Isochronous 10 Bulk 11 Interrupt
Sourcepub const fn set_txt(&mut self, val: u8)
pub const fn set_txt(&mut self, val: u8)
TX Endpoint Type - Read/Write 00 Control 01 Isochronous 10 Bulk 11 Interrupt
Sourcepub const fn txr(&self) -> bool
pub const fn txr(&self) -> bool
TX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID’s between the Host and device
Sourcepub const fn set_txr(&mut self, val: bool)
pub const fn set_txr(&mut self, val: bool)
TX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID’s between the Host and device
Trait Implementations§
Source§impl Clone for Endptctrl1
impl Clone for Endptctrl1
Source§fn clone(&self) -> Endptctrl1
fn clone(&self) -> Endptctrl1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more