aboutsummaryrefslogtreecommitdiff
path: root/shared/serial_parse.h
blob: 1efedc1b862ba67b3d506b9ef9d0856528195fd3 (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 <stdbool.h>

#include "protocol.h"

#define CD_SERIAL_READ_SUCCESS true
#define CD_SERIAL_READ_FAILURE false

/**
 * parse serial data byte by byte
 * @return true if read success, false if read fails
 */
bool cd_serial_parse(uint8_t byte);