mergCanBus
Main Page
Classes
Files
File List
All
Classes
Functions
Typedefs
MessageBuffer.h
1
#ifndef MESSAGEBUFFER_H
2
#define MESSAGEBUFFER_H
3
4
5
#define MAX_BUFFER_MSG_SIZE 30
/* Max number of messages in the buffer when reading the CAN**/
6
#define MSG_SIZE_BUFFER 11
/* Size of the messages in the buffer, 8 bytes for can data + 3 extra bytes for priority and others**/
7
8
#include "Message.h"
9
10
class
MessageBuffer
11
{
12
public
:
13
MessageBuffer
();
14
virtual
~
MessageBuffer
();
15
bool
isEmpty();
16
void
getMessage(
Message
*message);
17
void
put(byte *canmsg,byte priority,byte msgtype);
18
19
20
protected
:
21
private
:
22
//byte msgreadBuffer[MAX_BUFFER_MSG_SIZE*MSG_SIZE_BUFFER]; /**Buffer containing the read messages from the buffer*/
23
byte msgindex;
24
byte totalmessages;
25
26
27
};
28
29
#endif // MESSAGEBUFFER_H
MessageBuffer
Definition:
MessageBuffer.h:10
Message
Definition:
Message.h:53
MessageBuffer.h
Generated on Thu Jul 9 2015 15:17:25 for mergCanBus by
1.8.6