Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
CommsSystem.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_COMMS_SYSTEM_H
2#define RENSSELAERMOTORSPORT_COMMS_SYSTEM_H
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7
8#include "System.h"
9
10typedef enum {
14
15typedef struct {
18 int (*check_heartbeat)(void* self);
20
29void initCommsSystem(CommsSystem* comms, const char* name, int hz, CommsType type);
30
31#endif // RENSSELAERMOTORSPORT_COMMS_SYSTEM_H
CommsType
Definition: CommsSystem.h:10
@ CAN
Definition: CommsSystem.h:11
@ ETHERNET
Definition: CommsSystem.h:12
void initCommsSystem(CommsSystem *comms, const char *name, int hz, CommsType type)
Initializes the Comms System with initial settings.
Definition: CommsSystem.c:3
type
Definition: Updateable.h:17
CommsType type
Definition: CommsSystem.h:17
System system
Definition: CommsSystem.h:16
Definition: System.h:17