Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
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
8typedef enum {
20
21// Structured message function
22void sendMessage(const char* sender, MessageType type, const char* format, ...);
23
24#endif // RENNSSELAERMOTORSPORT_MESSAGE_FORMAT_H
MessageType
Definition: MessageFormat.h:8
@ MSG_TIMER_STATS
Definition: MessageFormat.h:17
@ MSG_ERROR
Definition: MessageFormat.h:13
@ MSG_OUTPUT_VALUE
Definition: MessageFormat.h:10
@ MSG_DEBUG
Definition: MessageFormat.h:14
@ MSG_WARNING
Definition: MessageFormat.h:12
@ MSG_CONFIG
Definition: MessageFormat.h:18
@ MSG_SENSOR_VALUE
Definition: MessageFormat.h:9
@ MSG_CAN_RX
Definition: MessageFormat.h:16
@ MSG_CAN_TX
Definition: MessageFormat.h:15
@ MSG_SYSTEM_STATUS
Definition: MessageFormat.h:11
void sendMessage(const char *sender, MessageType type, const char *format,...)
Definition: MessageFormat.c:5