#[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.
Trait Implementations§
impl Copy for EpControl
impl Eq for EpControl
impl StructuralPartialEq for EpControl
Auto Trait Implementations§
impl Freeze for EpControl
impl RefUnwindSafe for EpControl
impl Send for EpControl
impl Sync for EpControl
impl Unpin for EpControl
impl UnwindSafe for EpControl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)