pub unsafe extern "C" fn furi_thread_set_state_callback(
thread: *mut FuriThread,
callback: FuriThreadStateCallback,
)Expand description
Set the callback function to be executed upon a state thransition of a FuriThread.
The thread MUST be stopped when calling this function.
ยงArguments
thread(direction in, out) - pointer to the FuriThread instance to be modifiedcallback(direction in) - pointer to a user-specified callback function