Project

General

Profile

Statistics
| Revision:

root / trunk / cardbox / packet.h @ 211

History | View | Annotate | Download (405 Bytes)

1
#ifndef _PACKET_H_
2
#define _PACKET_H_
3

    
4
#include <tooltron.h>
5
#include <avr/eeprom.h>
6
#include "rs485_poll.h"
7
#include "bootloader.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 addr);
13
void send_packet(uint8_t cmd, uint8_t addr);
14
void send_packet_data(uint8_t cmd, uint8_t addr, uint8_t* data, uint8_t len);
15

    
16

    
17
#endif