[−][src]Struct lpc55s6x_hal::drivers::usbd::endpoint::Endpoint
Arbitrates access to the endpoint-specific registers and packet buffer memory.
Methods
impl Endpoint
[src]
pub fn new(index: u8) -> Endpoint
[src]
pub fn index(&self) -> u8
[src]
pub fn ep_type(&self) -> Option<EndpointType>
[src]
pub fn set_ep_type(&mut self, ep_type: EndpointType)
[src]
pub fn buf_addroff(&self, buf: &EndpointBuffer) -> u16
[src]
pub fn is_out_buf_set(&self) -> bool
[src]
pub fn set_out_buf(&mut self, buffer: EndpointBuffer)
[src]
pub fn reset_out_buf(
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
[src]
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
pub fn is_setup_buf_set(&self) -> bool
[src]
pub fn set_setup_buf(&mut self, buffer: EndpointBuffer)
[src]
pub fn reset_setup_buf(
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
[src]
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
pub fn is_in_buf_set(&self) -> bool
[src]
pub fn set_in_buf(&mut self, buffer: EndpointBuffer)
[src]
pub fn reset_in_buf(
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
[src]
&self,
cs: &CriticalSection,
epl: &EndpointRegistersInstance
)
pub fn configure(
&self,
cs: &CriticalSection,
usb: &USB0,
epl: &EndpointRegistersInstance
)
[src]
&self,
cs: &CriticalSection,
usb: &USB0,
epl: &EndpointRegistersInstance
)
pub fn write(
&self,
buf: &[u8],
cs: &CriticalSection,
epl: &EndpointRegistersInstance
) -> Result<usize>
[src]
&self,
buf: &[u8],
cs: &CriticalSection,
epl: &EndpointRegistersInstance
) -> Result<usize>
pub fn read(
&self,
buf: &mut [u8],
cs: &CriticalSection,
usb: &USB0,
epl: &EndpointRegistersInstance
) -> Result<usize>
[src]
&self,
buf: &mut [u8],
cs: &CriticalSection,
usb: &USB0,
epl: &EndpointRegistersInstance
) -> Result<usize>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self