diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-22 23:12:02 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-22 23:12:02 -0700 |
commit | cbf79a0f9cb859d04e8e03d627219cb2bf49611f (patch) | |
tree | 420ab8f785f7cdbd8ae6c219b517fb5122379724 /src/core/ao_fec.h | |
parent | 75e4521ec42a368cebc67a07f8713d7a854ea265 (diff) |
altos: Add the simplest possible viterbi decoder
I think I understand how it works now. It's not exactly speedy, and it
uses a lot of memory.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_fec.h')
-rw-r--r-- | src/core/ao_fec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ao_fec.h b/src/core/ao_fec.h index db5523a3..985352dd 100644 --- a/src/core/ao_fec.h +++ b/src/core/ao_fec.h @@ -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_ */ |