Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
System.c
Go to the documentation of this file.
1#include "../../Inc/Systems/System.h"
2
3void initSystem(System* system, const char* name, int hz, SystemType type, void* child) {
4 initUpdateable(&system->updateable, name, hz, SYSTEM, system);
5 system->type = type;
6 system->child = child;
7}
void initSystem(System *system, const char *name, int hz, SystemType type, void *child)
Initializes a System object.
Definition: System.c:3
SystemType
Definition: System.h:10
void initUpdateable(Updateable *updateable, const char *name, int hz, UpdateableType utype, void *child)
Definition: Updateable.c:6
@ SYSTEM
Definition: Updateable.h:20
Definition: System.h:17
Updateable updateable
Definition: System.h:18
void * child
Definition: System.h:20
SystemType type
Definition: System.h:19