Function rc_mav_set_callback_all#
Defined in File mavlink_udp.h
Function Documentation#
-
int rc_mav_set_callback_all(void (*func)(void))#
Sets a callback function which is called when any packet arrives.
If a message-specific callback function has been set with rc_mav_set_callback(), this general callback will be called before the message-specific callback.
- Parameters:
func – [in] The callback function
- Returns:
0 on success, -1 on failure