altos: Add the simplest possible viterbi decoder
[fw/altos] / src / core / ao_fec.h
index db5523a36c94c61299e1939087638a4f38aae957..985352ddf9b845638a6c53686ee1b6fdf34e65d4 100644 (file)
@@ -57,4 +57,13 @@ ao_fec_encode(uint8_t *in, uint8_t len, uint8_t *out);
 uint8_t
 ao_fec_interleave(uint8_t *in, uint8_t len, uint8_t *out);
 
+
+/*
+ * Decode data. 'in' is one byte per bit, soft decision
+ * 'out' must be len/8 bytes long
+ */
+
+uint8_t
+ao_fec_decode(uint8_t *in, int in_len, uint8_t *out);
+
 #endif /* _AO_FEC_H_ */