timer/parse_serial.h
Zack Buhman 7a0518c35b serial_forwarder: serial parsing
This removes the dependency on libserialport
2024-06-22 23:45:08 -05:00

16 lines
269 B
C

#pragma once
#include <stdint.h>
#include "bufsize.h"
#include "timer.h"
struct parser_state {
uint8_t buf[BUFSIZE];
int offset;
};
bool handle_parse(uint8_t * read_buf, int length,
struct parser_state * parser_state,
struct timer_state * timer_state);