pub unsafe extern "C" fn pipe_set_data_arrived_callback(
pipe: *mut PipeSide,
callback: PipeSideDataArrivedCallback,
event: FuriEventLoopEvent,
)Expand description
Sets the callback for when data arrives.
ยงArguments
[in]- pipe Pipe side to assign the callback to[in]- callback Callback to assign to the pipe side. Set to NULL to unsubscribe.[in]- event Additional event loop flags (e.g.Edge,Once, etc.). Non-flag values of the enum are not allowed.
Attach the pipe side to an event loop first using
pipe_attach_to_event_loop.