Struct sam4l::helpers::DeferredCall
[−]
[src]
pub struct DeferredCall(Task);
Represents a way to generate an asynchronous call without a hardware interrupt.
Methods
impl DeferredCall
[src]
pub const unsafe fn new(task: Task) -> DeferredCall
[src]
Creates a new DeferredCall
Only create one per task, preferably in the module that it will be used in.
pub fn set(&self)
[src]
Set the DeferredCall
as pending
pub fn has_tasks() -> bool
[src]
Are there any pending DeferredCall
s
pub fn next_pending() -> Option<Task>
[src]
Gets and clears the next pending DeferredCall