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