aboutsummaryrefslogtreecommitdiff
path: root/arduino/ace_old/link.h
blob: 797145e5121552112620b0690a6d3269a7854a89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef LINK_H
#define LINK_H

#include <inttypes.h>

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_PACKET_SIZE 256

typedef struct {
  uint8_t* data;
  uint16_t length;
} packet;

void to_link_layer(packet* s); //implemented in link
void from_link_layer(packet* r); //should be implemented in transport

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* LINK_H */