Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / scout_avr / src / Atmega128rfa1.h @ 0970d303

History | View | Annotate | Download (457 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 8
11
#define MAX_PUBLISHERS 6
12
#define INPUT_SIZE 256
13
#define OUTPUT_SIZE 1024
14

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

    
26
#endif