Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Output.c
Go to the documentation of this file.
1#include "../../Inc/Outputs/Output.h"
2#include "../../Inc/Utils/Updateable.h"
3
4void initOutput(Output* output, const char* name, int hz, OutputType type) {
5 initUpdateable(&output->updateable, name, hz, OUTPUT, output);
6 output->type = type;
7}
void initOutput(Output *output, const char *name, int hz, OutputType type)
Initializes an output with the given parameters.
Definition: Output.c:4
OutputType
Definition: Output.h:9
void initUpdateable(Updateable *updateable, const char *name, int hz, UpdateableType utype, void *child)
Definition: Updateable.c:6
@ OUTPUT
Definition: Updateable.h:18
Definition: Output.h:14
OutputType type
Definition: Output.h:16
Updateable updateable
Definition: Output.h:15