Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
ExternalSystem.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "System.h"
#include "CommsSystem.h"
Include dependency graph for ExternalSystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ExternalSystem
 

Enumerations

enum  ExternalType { BMS , ESC , IMD }
 

Functions

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

Enumeration Type Documentation

◆ ExternalType

Enumerator
BMS 
ESC 
IMD 

Definition at line 11 of file ExternalSystem.h.

11 {
12 BMS,
13 ESC,
14 IMD
ExternalType
@ IMD
@ BMS
@ ESC

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: