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

Writes data to IN or control endpoint

Returns:

  • number of written bytes

Arguments

  • ep - endpoint index, hould belong to IN or CONTROL endpoint
  • buf - pointer to data buffer
  • blen - size of data will be written