Struct lpc55_hal::drivers::usbd::endpoint::Endpoint [−][src]
Arbitrates access to the endpoint-specific registers and packet buffer memory.
Implementations
impl<USB> Endpoint<USB> where
USB: Usb<Enabled>,
[src]
impl<USB> Endpoint<USB> where
USB: Usb<Enabled>,
[src]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>