diff options
author | Josh Allen <axlecrusher@gmail.com> | 2017-02-10 06:33:38 -0500 |
---|---|---|
committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-10 06:33:38 -0500 |
commit | 917a7f7754e47567bf9102b6c26b6649ae6b28dd (patch) | |
tree | eb45a344935b4fc6f354ebcae1b186f096ab7cc2 /tools/ootx_decode/ootx_decoder.h | |
parent | 29400a2063fc740c3c33d35649d6f6a4504b6745 (diff) | |
download | libsurvive-917a7f7754e47567bf9102b6c26b6649ae6b28dd.tar.gz libsurvive-917a7f7754e47567bf9102b6c26b6649ae6b28dd.tar.bz2 |
add initial ootx decoder
Diffstat (limited to 'tools/ootx_decode/ootx_decoder.h')
-rw-r--r-- | tools/ootx_decode/ootx_decoder.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <stdint.h> + +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 |