Statistics
| Revision:

root / trunk / cardbox / packet.h @ 213

History | View | Annotate | Download (380 Bytes)

1
#ifndef _PACKET_H_
2
#define _PACKET_H_
3
4
#include <tooltron.h>
5
#include <avr/eeprom.h>
6
#include "rs485_int.h"
7
8
/** @brief Max time to wait until we exit the packet handler */
9
#define MAX_TIMEOUT 60000
10
11
char parse_packet(uint8_t *mbuf, uint8_t addr);
12
void send_packet(uint8_t cmd, uint8_t addr);
13
void send_packet_data(uint8_t cmd, uint8_t addr, uint8_t* data, uint8_t len);
14
15
16
#endif