blob: 1e9c404d608ca31d849762b8b26c772eaeb7f53d (
plain)
| 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
 | #pragma once
/** @file serial_parse.h */
#include <stdint.h>
#include <stdbool.h>
#include "protocol.h"
#define CD_SERIAL_READ_SUCCESS true
#define CD_SERIAL_READ_FAILURE false
#ifdef __cplusplus
extern "C" {
#endif
/**
 * parse serial data byte by byte
 * @return true if read success, false if read fails
 */
bool cd_serial_parse(uint8_t byte);
#ifdef __cplusplus
}
#endif
 |