root / scout_avr / src / Atmega128rfa1.h @ 47e26dee
History | View | Annotate | Download (456 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 256 |
| 13 |
#define OUTPUT_SIZE 256 |
| 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
|