usbd_hw_ep_read

Type Alias usbd_hw_ep_read 

Source
pub type usbd_hw_ep_read = Option<unsafe extern "C" fn(ep: u8, buf: *mut c_void, blen: u16) -> i32>;
Expand description

Reads data from OUT or control endpoint

§Arguments

  • ep - endpoint index, should belong to OUT or CONTROL endpoint.
  • buf - pointer to read buffer
  • blen - size of the read buffer in bytes

§Returns

size of the actually received data, -1 on error.

Note: if data does not fit buffer it will be truncated

Aliased Type§

pub enum usbd_hw_ep_read {
    None,
    Some(unsafe extern "C" fn(u8, *mut c_void, u16) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u8, *mut c_void, u16) -> i32)

Some value of type T.