flipperzero_sys

Type Alias FuriHalSerialAsyncRxCallback

Source
pub type FuriHalSerialAsyncRxCallback = Option<unsafe extern "C" fn(handle: *mut FuriHalSerialHandle, event: FuriHalSerialRxEvent, context: *mut c_void)>;
Expand description

Receive callback

Callback will be called in interrupt context, ensure thread safety on your side.

§Arguments

  • handle - Serial handle
  • event - FuriHalSerialRxEvent
  • context - Callback context provided earlier

Aliased Type§

enum FuriHalSerialAsyncRxCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut FuriHalSerialHandle, _: u8, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut FuriHalSerialHandle, _: u8, _: *mut c_void))

Some value of type T.