blob: 2174436db2e14d469e8fd20cffbf42ecee8a2eb4 (
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
|
#pragma once
/** @file serial_parse.h */
#include <stdbool.h>
#include <stdint.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
|