Function pros_sys::rtos::task_notify_ext

source ·
pub unsafe extern "C" fn task_notify_ext(
    task: task_t,
    value: u32,
    action: notify_action_e_t,
    prev_value: *const u32
) -> u32
Expand description

Sends a notification to a task, optionally performing some action. Will also retrieve the value of the notification in the target task before modifying the notification value.

See https://pros.cs.purdue.edu/v5/tutorials/topical/notifications.html for details.

\param task The task to notify \param value The value used in performing the action \param action An action to optionally perform on the receiving task’s notification value \param prev_value A pointer to store the previous value of the target task’s notification, may be NULL

\return Dependent on the notification action. For NOTIFY_ACTION_NO_WRITE: return 0 if the value could be written without needing to overwrite, 1 otherwise. For all other NOTIFY_ACTION values: always return 0