aboutsummaryrefslogtreecommitdiff
path: root/tools/ootx_decode/ootx_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ootx_decode/ootx_decoder.h')
-rw-r--r--tools/ootx_decode/ootx_decoder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ootx_decode/ootx_decoder.h b/tools/ootx_decode/ootx_decoder.h
index 696fecb..6b181ee 100644
--- a/tools/ootx_decode/ootx_decoder.h
+++ b/tools/ootx_decode/ootx_decoder.h
@@ -23,6 +23,8 @@ typedef struct {
uint32_t preamble;
uint8_t bits_processed;
uint8_t found_preamble;
+
+ uint8_t bit_count[2];
} ootx_decoder_context;
@@ -31,6 +33,8 @@ void ootx_process_bit(ootx_decoder_context *ctx, uint32_t length);
void ootx_init_decoder_context(ootx_decoder_context *ctx);
int8_t ootx_decode_lighthouse_number(uint8_t last_num, uint32_t ticks, int32_t delta);
+void ootx_log_bit(ootx_decoder_context *ctx, uint32_t length);
+void ootx_pump_greatest_bit(ootx_decoder_context *ctx);
extern void (*ootx_packet_clbk)(ootx_packet* packet);