flipperzero_sys

Type Alias usbd_hw_ep_write

Source
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

§Arguments

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

§Returns

number of written bytes

Aliased Type§

enum usbd_hw_ep_write {
    None,
    Some(unsafe extern "C" fn(_: u8, _: *const c_void, _: u16) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.