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

Go to the source code of this file.

Functions

void initSystem (System *system, const char *name, int hz, SystemType type)
 Initializes a System object. More...
 

Function Documentation

◆ initSystem()

void initSystem ( System system,
const char *  name,
int  hz,
SystemType  type 
)

Initializes a System object.

Parameters
systemPointer to the System to initialize.
nameName of the system.
hzFrequency in Hertz.
typeType of the system.

Definition at line 3 of file System.c.

3 {
4 initUpdateable(&system->updateable, name, hz);
5 system->type = type;
6}
type
Definition: Updateable.h:17
void initUpdateable(Updateable *updateable, const char *name, int hz)
Definition: Updateable.c:6
Updateable updateable
Definition: System.h:18
SystemType type
Definition: System.h:19
Here is the call graph for this function:
Here is the caller graph for this function: