aboutsummaryrefslogtreecommitdiff
path: root/c/arduino/ace.h
blob: 75b178cbeb11c2790306b597965b92e674d41437 (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
25
26
27
#ifndef ACE_H
#define ACE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>
#include <inttypes.h>
#include "framing.h"
#include "arq.h"

#define SERIAL_BUFFER_SIZE 64

void init_ace0(uint32_t baud, uint32_t extra_time);
void ace_send0(uint8_t size, const uint8_t* const message);
void ace_event0(message_event event, int16_t size, const uint8_t* const message);

#define init_ace init_ace0
#define ace_send ace_send0
#define ace_event ace_event0

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

#endif /* ACE_H */