[][src]Struct lpc55s6x_hal::drivers::usbd::endpoint::Endpoint

pub struct Endpoint { /* fields omitted */ }

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]

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]

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]

pub fn configure(
    &self,
    cs: &CriticalSection,
    usb: &USB0,
    epl: &EndpointRegistersInstance
)
[src]

pub fn write(
    &self,
    buf: &[u8],
    cs: &CriticalSection,
    epl: &EndpointRegistersInstance
) -> Result<usize>
[src]

pub fn read(
    &self,
    buf: &mut [u8],
    cs: &CriticalSection,
    usb: &USB0,
    epl: &EndpointRegistersInstance
) -> Result<usize>
[src]

Trait Implementations

impl Send for Endpoint[src]

impl Default for Endpoint[src]

Auto Trait Implementations

impl Unpin for Endpoint

impl Sync for Endpoint

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self