Project

General

Profile

Statistics
| Revision:

root / trunk / cardbox / packet.h @ 271

History | View | Annotate | Download (362 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
#include "reset.h"
8

    
9
/** @brief Max time to wait until we exit the packet handler */
10
#define MAX_TIMEOUT 60000
11

    
12
char parse_packet(uint8_t *mbuf, uint8_t* len, uint8_t addr);
13
void send_packet(uint8_t cmd, uint8_t addr, uint8_t* data, uint8_t len);
14

    
15
#endif