From 917a7f7754e47567bf9102b6c26b6649ae6b28dd Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Fri, 10 Feb 2017 06:33:38 -0500 Subject: add initial ootx decoder --- tools/ootx_decode/ootx_decoder.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tools/ootx_decode/ootx_decoder.h (limited to 'tools/ootx_decode/ootx_decoder.h') diff --git a/tools/ootx_decode/ootx_decoder.h b/tools/ootx_decode/ootx_decoder.h new file mode 100644 index 0000000..b714b53 --- /dev/null +++ b/tools/ootx_decode/ootx_decoder.h @@ -0,0 +1,21 @@ +// (C) 2016 Joshua Allen, MIT/x11 License. +// +//All MIT/x11 Licensed Code in this file may be relicensed freely under the GPL or LGPL licenses. + +#ifndef OOTX_DECODER_H +#define OOTX_DECODER_H + +#include + +typedef struct { + uint16_t length; + uint8_t* data; + uint32_t crc32; +} ootx_packet; + +void ootx_init_buffer(); +void ootx_process_bit(uint32_t length); + +extern void (*ootx_packet_clbk)(ootx_packet* packet); + +#endif \ No newline at end of file -- cgit v1.2.3