[−][src]Struct lpc55_hal::drivers::usbd::endpoint::Endpoint
Arbitrates access to the endpoint-specific registers and packet buffer memory.
Implementations
impl<USB> Endpoint<USB> where
USB: Usb<Enabled>, [src][−]
USB: Usb<Enabled>,
pub fn new(index: u8) -> Endpoint<USB>[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: &USB,
epl: &EndpointRegistersInstance
)[src]
&self,
cs: &CriticalSection,
usb: &USB,
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: &USB,
epl: &EndpointRegistersInstance
) -> Result<usize>[src]
&self,
buf: &mut [u8],
cs: &CriticalSection,
usb: &USB,
epl: &EndpointRegistersInstance
) -> Result<usize>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,