blob: 0816ea1e2ff92294b93a5d632f2a99cf8d29ec1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
/** @file serial_parse.h */
#include <stdint.h>
#include "bool.h"
#include "protocol.h"
#define W2_SERIAL_READ_SUCCESS true
#define W2_SERIAL_READ_FAILURE false
/**
* parse serial data byte by byte
* @return true if read success, false if read fails
*/
bool w2_serial_parse(uint8_t byte);
|