grblHAL core  20241107
task.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* foreground_task_ptr) (void *data)
 

Functions

bool task_add_immediate (foreground_task_ptr fn, void *data)
 Enqueue a function to be called once by the foreground process. More...
 
bool task_add_delayed (foreground_task_ptr fn, void *data, uint32_t delay_ms)
 
void task_delete (foreground_task_ptr fn, void *data)
 
bool task_add_systick (foreground_task_ptr fn, void *data)
 
void task_delete_systick (foreground_task_ptr fn, void *data)
 

Typedef Documentation

◆ foreground_task_ptr

typedef void(* foreground_task_ptr) (void *data)

Function Documentation

◆ task_add_delayed()

bool task_add_delayed ( foreground_task_ptr  fn,
void *  data,
uint32_t  delay_ms 
)

◆ task_add_immediate()

bool task_add_immediate ( foreground_task_ptr  fn,
void *  data 
)

Enqueue a function to be called once by the foreground process.

Parameters
fnpointer to a foreground_task_ptr type of function.
datapointer to data to be passed to the callee.
Returns
true if successful, false otherwise.

◆ task_add_systick()

bool task_add_systick ( foreground_task_ptr  fn,
void *  data 
)

◆ task_delete()

void task_delete ( foreground_task_ptr  fn,
void *  data 
)

◆ task_delete_systick()

void task_delete_systick ( foreground_task_ptr  fn,
void *  data 
)