altos: optimize Viterbi implementation
[fw/altos] / src / core / ao_fec.h
index db5523a36c94c61299e1939087638a4f38aae957..d4f64b740ac85e4a5d48f7be1932f5f3cb03380d 100644 (file)
@@ -42,7 +42,7 @@ ao_fec_prepare(uint8_t *in, uint8_t len, uint8_t *out);
  * must be 'len' bytes long. 'out' and 'in' can be
  * the same array
  */
-uint8_t
+void
 ao_fec_whiten(uint8_t *in, uint8_t len, uint8_t *out);
 
 /*
@@ -57,4 +57,12 @@ 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, uint16_t in_len, uint8_t *out);
+
 #endif /* _AO_FEC_H_ */