Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
MonitorSystem.c
Go to the documentation of this file.
1#include "../../Inc/Systems/MonitorSystem.h"
2
3void initMonitorSystem(MonitorSystem* monitor, const char* name, int hz,
4 MonitorType type, FaultType fault, int (*runMonitor)(void* self)) {
5 initSystem(&monitor->system, name, hz, MONITOR, monitor);
6 monitor->type = type;
7 monitor->fault = fault;
8 monitor->runMonitor = runMonitor;
9}
void initMonitorSystem(MonitorSystem *monitor, const char *name, int hz, MonitorType type, FaultType fault, int(*runMonitor)(void *self))
Initializes the Monitor System with initial settings.
Definition: MonitorSystem.c:3
MonitorType
Definition: MonitorSystem.h:10
FaultType
Definition: MonitorSystem.h:19
@ MONITOR
Definition: System.h:13
void initSystem(System *system, const char *name, int hz, SystemType type, void *child)
Initializes a System object.
Definition: System.c:3
MonitorType type
Definition: MonitorSystem.h:28
FaultType fault
Definition: MonitorSystem.h:29
int(* runMonitor)(void *self)
Definition: MonitorSystem.h:30