Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../Inc/Systems/ExternalSystem.h"
#include "../../Inc/Utils/Common.h"
#include "../../Inc/Utils/Updateable.h"
#include "../../Inc/Scheduler/Task.h"
Go to the source code of this file.
Functions | |
void | initExternalSystem (ExternalSystem *external, const char *name, int hz, ExternalType type, int(*updateExternal)(ExternalSystem *external), int(*check_heartbeat)(void *self), void *child) |
int | e_defaultUpdate (Updateable *updateable) |
int e_defaultUpdate | ( | Updateable * | updateable | ) |
Default update function for ExternalSystem objects.
task | Pointer to the task to update. |
Definition at line 20 of file ExternalSystem.c.
void initExternalSystem | ( | ExternalSystem * | external, |
const char * | name, | ||
int | hz, | ||
ExternalType | type, | ||
int(*)(ExternalSystem *external) | updateExternal, | ||
int(*)(void *self) | check_heartbeat, | ||
void * | child | ||
) |
Initializes the External System with initial settings.
external | A pointer to the ExternalSystem structure. |
name | The name of the external system. |
hz | Rate at which the external system is called (in hz). |
type | The type of external system (per ExternalType). |
updateExternal | The function to update the external system. |
check_heartbeat | The function to check the heartbeat of the external system. |
child | Pointer to the child struct. |
Definition at line 6 of file ExternalSystem.c.