Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Utils
MessageFormat.h
Go to the documentation of this file.
1
#ifndef RENNSSELAERMOTORSPORT_MESSAGE_FORMAT_H
2
#define RENNSSELAERMOTORSPORT_MESSAGE_FORMAT_H
3
4
#include <stdio.h>
5
#include <stdarg.h>
6
7
// Message types
8
typedef
enum
{
9
MSG_SENSOR_VALUE
,
10
MSG_OUTPUT_VALUE
,
11
MSG_SYSTEM_STATUS
,
12
MSG_WARNING
,
13
MSG_ERROR
,
14
MSG_DEBUG
,
15
MSG_CAN_TX
,
16
MSG_CAN_RX
,
17
MSG_TIMER_STATS
,
18
MSG_CONFIG
19
}
MessageType
;
20
21
// Structured message function
22
void
sendMessage
(
const
char
* sender,
MessageType
type,
const
char
* format, ...);
23
24
#endif
// RENNSSELAERMOTORSPORT_MESSAGE_FORMAT_H
MessageType
MessageType
Definition:
MessageFormat.h:8
MSG_TIMER_STATS
@ MSG_TIMER_STATS
Definition:
MessageFormat.h:17
MSG_ERROR
@ MSG_ERROR
Definition:
MessageFormat.h:13
MSG_OUTPUT_VALUE
@ MSG_OUTPUT_VALUE
Definition:
MessageFormat.h:10
MSG_DEBUG
@ MSG_DEBUG
Definition:
MessageFormat.h:14
MSG_WARNING
@ MSG_WARNING
Definition:
MessageFormat.h:12
MSG_CONFIG
@ MSG_CONFIG
Definition:
MessageFormat.h:18
MSG_SENSOR_VALUE
@ MSG_SENSOR_VALUE
Definition:
MessageFormat.h:9
MSG_CAN_RX
@ MSG_CAN_RX
Definition:
MessageFormat.h:16
MSG_CAN_TX
@ MSG_CAN_TX
Definition:
MessageFormat.h:15
MSG_SYSTEM_STATUS
@ MSG_SYSTEM_STATUS
Definition:
MessageFormat.h:11
sendMessage
void sendMessage(const char *sender, MessageType type, const char *format,...)
Definition:
MessageFormat.c:5
Generated by
1.9.5