/// Notify this task from an interrupt.
Notify this task from an interrupt.
Notify this task from an interrupt .
pub fn notify_from_isr(
        &self,
        context: &InterruptContext,
        notification: TaskNotification,
    ) -> Result<(), FreeRtosError> {
        unsafe {
            let n = notification.to_freertos();
            let t = freertos_rs_task_notify_isr(
                self.task_handle,
                n.0,
                n.1,
                context.get_task_field_mut(),
            );
            if t != 0 {
                Err(FreeRtosError::QueueFull)
            } else {
                Ok(())
            }
        }
    }
pub fn notify_from_isr ( & self , context : & InterruptContext , notification : TaskNotification , ) -> Result < ( ) , FreeRtosError > { unsafe { let n = notification . to_freertos ( ) ; let t = freertos_rs_task_notify_isr ( self . task_handle , n . 0 , n . 1 , context . get_task_field_mut ( ) , ) ; if t != 0 { Err ( FreeRtosError :: QueueFull ) } else { Ok ( ( ) ) } } }
Notify this task from an interrupt.
Notify this task from an interrupt .
&self
context
&InterruptContext
notification
TaskNotification