Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Systems
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
10
typedef
enum
{
11
CAN
,
12
ETHERNET
13
}
CommsType
;
14
15
typedef
struct
{
16
System
system
;
17
CommsType
type
;
18
int (*check_heartbeat)(
void
* self);
19
}
CommsSystem
;
20
29
void
initCommsSystem
(
CommsSystem
* comms,
const
char
* name,
int
hz,
CommsType
type
);
30
31
#endif
// RENSSELAERMOTORSPORT_COMMS_SYSTEM_H
CommsType
CommsType
Definition:
CommsSystem.h:10
CAN
@ CAN
Definition:
CommsSystem.h:11
ETHERNET
@ ETHERNET
Definition:
CommsSystem.h:12
initCommsSystem
void initCommsSystem(CommsSystem *comms, const char *name, int hz, CommsType type)
Initializes the Comms System with initial settings.
Definition:
CommsSystem.c:3
System.h
type
type
Definition:
Updateable.h:17
CommsSystem
Definition:
CommsSystem.h:15
CommsSystem::type
CommsType type
Definition:
CommsSystem.h:17
CommsSystem::system
System system
Definition:
CommsSystem.h:16
System
Definition:
System.h:17
Generated by
1.9.5