Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Functions
MonitorSystem.c File Reference
#include "../../Inc/Systems/MonitorSystem.h"
Include dependency graph for MonitorSystem.c:

Go to the source code of this file.

Functions

void initMonitorSystem (MonitorSystem *monitor, const char *name, int hz, MonitorType type, FaultType fault)
 Initializes the Monitor System with initial settings. More...
 

Function Documentation

◆ initMonitorSystem()

void initMonitorSystem ( MonitorSystem monitor,
const char *  name,
int  hz,
MonitorType  type,
FaultType  fault 
)

Initializes the Monitor System with initial settings.

Parameters
monitorA pointer to the MonitorSystem structure.
nameThe name of the monitor.
hzRate at which the monitor is called (in hz).
typeThe type of monitor (per MonitorType).
faultThe type of fault to execute when monitor trips (per FaultType).

Definition at line 3 of file MonitorSystem.c.

4 {
5 initSystem(&monitor->system, name, hz, MONITOR);
6 monitor->type = type;
7 monitor->fault = fault;
8}
void initSystem(System *system, const char *name, int hz, SystemType type)
Initializes a System object.
Definition: System.c:3
@ MONITOR
Definition: System.h:13
type
Definition: Updateable.h:17
MonitorType type
Definition: MonitorSystem.h:26
FaultType fault
Definition: MonitorSystem.h:27
Here is the call graph for this function:
Here is the caller graph for this function: