Project

General

Profile

Statistics
| Branch: | Revision:

root / scout_avr / src / Atmega128rfa1.h @ 1c3c96ce

History | View | Annotate | Download (389 Bytes)

1
#ifndef _ATMEGA128RFA1_H_
2
#define _ATMEGA128RFA1_H_
3

    
4
#include "ros/node_handle.h"
5

    
6
#define BAUD_RATE 38400
7

    
8
#define RX_BUFFER_SIZE 256
9

    
10
#define MAX_SUBSCRIBERS 2
11
#define MAX_PUBLISHERS 2
12
#define INPUT_SIZE 128
13
#define OUTPUT_SIZE 128
14

    
15
class Atmega128rfa1
16
{
17
public:
18
  Atmega128rfa1();
19
  void init();
20
  int read();
21
  void write(uint8_t* data, int length);
22
  unsigned long time();
23
};
24

    
25
#endif