root / scout_avr / src / Atmega128rfa1.h @ 812788aa
History | View | Annotate | Download (456 Bytes)
1 | 88fb3a79 | Tom Mullins | #ifndef _ATMEGA128RFA1_H_
|
---|---|---|---|
2 | #define _ATMEGA128RFA1_H_
|
||
3 | |||
4 | #include "ros/node_handle.h" |
||
5 | |||
6 | 1c3c96ce | Tom Mullins | #define BAUD_RATE 38400 |
7 | |||
8 | #define RX_BUFFER_SIZE 256 |
||
9 | |||
10 | cf115e3d | Tom Mullins | #define MAX_SUBSCRIBERS 2 |
11 | #define MAX_PUBLISHERS 2 |
||
12 | #define INPUT_SIZE 128 |
||
13 | #define OUTPUT_SIZE 128 |
||
14 | 88fb3a79 | Tom Mullins | |
15 | class Atmega128rfa1 |
||
16 | { |
||
17 | public:
|
||
18 | Atmega128rfa1(); |
||
19 | void init();
|
||
20 | int read();
|
||
21 | void write(uint8_t* data, int length); |
||
22 | f115416e | Tom Mullins | void puts(const char* str) {write((uint8_t*) str, strlen(str));} |
23 | 88fb3a79 | Tom Mullins | unsigned long time(); |
24 | }; |
||
25 | |||
26 | #endif |