Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../Inc/Scheduler/Task.h"
Go to the source code of this file.
Functions | |
void | TaskInit (Task *task, Updateable *updateable, int hz) |
Initializes a task with the given sensor and update frequency. More... | |
void | TaskExecute (Task *task) |
Executes the task by calling the sensor's update function. More... | |
void TaskExecute | ( | Task * | task | ) |
Executes the task by calling the sensor's update function.
task | Pointer to the Task structure to execute. |
This function executes the task by invoking the update function of the associated sensor, if it exists.
Definition at line 9 of file Task.c.
void TaskInit | ( | Task * | task, |
Updateable * | updateable, | ||
int | hz | ||
) |
Initializes a task with the given sensor and update frequency.
task | Pointer to the Task structure to initialize. |
updateable | Pointer to the Updateable structure associated with the task. |
hz | The update frequency in Hertz. |
This function sets up a task by assigning the specified sensor and update frequency. It also initializes the next execution time to zero.
Definition at line 3 of file Task.c.