#[repr(transparent)]pub struct EpControl(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl EpControl
impl EpControl
Sourcepub const fn buffer_address(&self) -> u16
pub const fn buffer_address(&self) -> u16
64 byte aligned buffer address for this EP (bits 0-5 are ignored). Relative to the start of the DPRAM.
Sourcepub fn set_buffer_address(&mut self, val: u16)
pub fn set_buffer_address(&mut self, val: u16)
64 byte aligned buffer address for this EP (bits 0-5 are ignored). Relative to the start of the DPRAM.
Sourcepub const fn interrupt_on_nak(&self) -> bool
pub const fn interrupt_on_nak(&self) -> bool
Trigger an interrupt if a NAK is sent. Intended for debug only.
Sourcepub fn set_interrupt_on_nak(&mut self, val: bool)
pub fn set_interrupt_on_nak(&mut self, val: bool)
Trigger an interrupt if a NAK is sent. Intended for debug only.
Sourcepub const fn interrupt_on_stall(&self) -> bool
pub const fn interrupt_on_stall(&self) -> bool
Trigger an interrupt if a STALL is sent. Intended for debug only.
Sourcepub fn set_interrupt_on_stall(&mut self, val: bool)
pub fn set_interrupt_on_stall(&mut self, val: bool)
Trigger an interrupt if a STALL is sent. Intended for debug only.
pub const fn endpoint_type(&self) -> EpControlEndpointType
pub fn set_endpoint_type(&mut self, val: EpControlEndpointType)
Sourcepub const fn interrupt_per_double_buff(&self) -> bool
pub const fn interrupt_per_double_buff(&self) -> bool
Trigger an interrupt each time both buffers are done. Only valid in double buffered mode.
Sourcepub fn set_interrupt_per_double_buff(&mut self, val: bool)
pub fn set_interrupt_per_double_buff(&mut self, val: bool)
Trigger an interrupt each time both buffers are done. Only valid in double buffered mode.
Sourcepub const fn interrupt_per_buff(&self) -> bool
pub const fn interrupt_per_buff(&self) -> bool
Trigger an interrupt each time a buffer is done.
Sourcepub fn set_interrupt_per_buff(&mut self, val: bool)
pub fn set_interrupt_per_buff(&mut self, val: bool)
Trigger an interrupt each time a buffer is done.
Sourcepub const fn double_buffered(&self) -> bool
pub const fn double_buffered(&self) -> bool
This endpoint is double buffered.
Sourcepub fn set_double_buffered(&mut self, val: bool)
pub fn set_double_buffered(&mut self, val: bool)
This endpoint is double buffered.
Sourcepub const fn enable(&self) -> bool
pub const fn enable(&self) -> bool
Enable this endpoint. The device will not reply to any packets for this endpoint if this bit is not set.
Sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
Enable this endpoint. The device will not reply to any packets for this endpoint if this bit is not set.