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