Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Src
Systems
ExternalSystem.c
Go to the documentation of this file.
1
#include "../../Inc/Systems/ExternalSystem.h"
2
3
void
initExternalSystem
(
ExternalSystem
* external,
const
char
* name,
int
hz,
4
ExternalType
type
) {
5
initSystem
(&external->
system
, name, hz,
EXTERNAL
);
6
external->
type
=
type
;
7
external->
comms
= NULL;
8
external->
check_heartbeat
= NULL;
9
}
initExternalSystem
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type)
Definition:
ExternalSystem.c:3
ExternalType
ExternalType
Definition:
ExternalSystem.h:11
initSystem
void initSystem(System *system, const char *name, int hz, SystemType type)
Initializes a System object.
Definition:
System.c:3
EXTERNAL
@ EXTERNAL
Definition:
System.h:12
type
type
Definition:
Updateable.h:17
ExternalSystem
Definition:
ExternalSystem.h:17
ExternalSystem::system
System system
Definition:
ExternalSystem.h:18
ExternalSystem::type
ExternalType type
Definition:
ExternalSystem.h:19
ExternalSystem::comms
CommsSystem * comms
Definition:
ExternalSystem.h:20
ExternalSystem::check_heartbeat
int(* check_heartbeat)(void *self)
Definition:
ExternalSystem.h:21
Generated by
1.9.5