Struct freertos_rs::Task
[−]
[src]
pub struct Task { /* fields omitted */ }
Handle for a FreeRTOS task
Methods
impl Task
[src]
fn new() -> TaskBuilder
Prepare a builder object for the new task.
fn get_name(&self) -> Result<String, ()>
Get the name of the current task.
fn current() -> Result<Task, FreeRtosError>
Try to find the task of the current execution context.
fn set_notification_value(&self, val: u32)
Forcibly set the notification value for this task.
fn notify(&self, notification: TaskNotification)
Notify this task.
fn notify_from_isr(
&self,
context: &InterruptContext,
notification: TaskNotification
) -> Result<(), FreeRtosError>
&self,
context: &InterruptContext,
notification: TaskNotification
) -> Result<(), FreeRtosError>
Notify this task from an interrupt.
fn take_notification(&self, clear: bool, wait_for: Duration) -> u32
Take the notification and either clear the notification value or decrement it by one.
fn wait_for_notification(
&self,
clear_bits_enter: u32,
clear_bits_exit: u32,
wait_for: Duration
) -> Result<u32, FreeRtosError>
&self,
clear_bits_enter: u32,
clear_bits_exit: u32,
wait_for: Duration
) -> Result<u32, FreeRtosError>
Wait for a notification to be posted.