mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 04:32:02 +00:00
e8550f26ba
It has checksum errors at 123 byte payloads, but this was tested with the old rftest-tx --- so the transmit side could be the problem.
20 lines
387 B
C
20 lines
387 B
C
#ifndef PACKET_H
|
|
#define PACKET_H
|
|
|
|
#ifndef MAX_PACKET_SIZE
|
|
#define MAX_PACKET_SIZE 127
|
|
#endif
|
|
|
|
typedef uint16_t short_addr_t;
|
|
|
|
struct packet {
|
|
short_addr_t addr;
|
|
uint8_t length;
|
|
volatile struct packet * left;
|
|
volatile struct packet * right;
|
|
uint8_t data[MAX_PACKET_SIZE+1]; /* + 1 since maca returns the length as the first byte */
|
|
};
|
|
typedef struct packet packet_t;
|
|
|
|
#endif
|