/// Send an item to the end of the queue, from an interrupt.
Send an item to the end of the queue, from an interrupt.
Send an item to the end of the queue from an interrupt .
pub fn send_from_isr(
        &self,
        context: &mut InterruptContext,
        item: T,
    ) -> Result<(), FreeRtosError> {
        unsafe {
            if freertos_rs_queue_send_isr(
                self.queue,
                &item as *const _ as FreeRtosVoidPtr,
                context.get_task_field_mut(),
            ) != 0
            {
                Err(FreeRtosError::QueueFull)
            } else {
                Ok(())
            }
        }
    }
pub fn send_from_isr ( & self , context : & mut InterruptContext , item : T , ) -> Result < ( ) , FreeRtosError > { unsafe { if freertos_rs_queue_send_isr ( self . queue , & item as * const _ as FreeRtosVoidPtr , context . get_task_field_mut ( ) , ) != 0 { Err ( FreeRtosError :: QueueFull ) } else { Ok ( ( ) ) } } }
Send an item to the end of the queue, from an interrupt.
Send an item to the end of the queue from an interrupt .
&self
context
&mut InterruptContext
item
T