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

Go to the source code of this file.

Functions

void initExternalSystem (ExternalSystem *external, const char *name, int hz, ExternalType type)
 

Function Documentation

◆ initExternalSystem()

void initExternalSystem ( ExternalSystem external,
const char *  name,
int  hz,
ExternalType  type 
)

Initializes the External System with initial settings.

Parameters
externalA pointer to the ExternalSystem structure.
nameThe name of the external system.
hzRate at which the external system is called (in hz).
typeThe type of external system (per ExternalType).

Definition at line 3 of file ExternalSystem.c.

4 {
5 initSystem(&external->system, name, hz, EXTERNAL);
6 external->type = type;
7 external->comms = NULL;
8 external->check_heartbeat = NULL;
9}
void initSystem(System *system, const char *name, int hz, SystemType type)
Initializes a System object.
Definition: System.c:3
@ EXTERNAL
Definition: System.h:12
type
Definition: Updateable.h:17
ExternalType type
CommsSystem * comms
int(* check_heartbeat)(void *self)
Here is the call graph for this function:
Here is the caller graph for this function: