Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
CommsSystem.c
Go to the documentation of this file.
1#include "../../Inc/Systems/CommsSystem.h"
2
3void initCommsSystem(CommsSystem* comms, const char* name, int hz, CommsType type) {
4 initSystem(&comms->system, name, hz, COMMS, comms);
5 comms->type = type;
6 comms->check_heartbeat = NULL;
7}
void initCommsSystem(CommsSystem *comms, const char *name, int hz, CommsType type)
Initializes the Comms System with initial settings.
Definition: CommsSystem.c:3
CommsType
Definition: CommsSystem.h:10
@ COMMS
Definition: System.h:11
void initSystem(System *system, const char *name, int hz, SystemType type, void *child)
Initializes a System object.
Definition: System.c:3
CommsType type
Definition: CommsSystem.h:17
int(* check_heartbeat)(void *self)
Definition: CommsSystem.h:18
System system
Definition: CommsSystem.h:16