Commit Graph

7 Commits

Author SHA1 Message Date
stevie 09d298bde4 Fix compiler warnings (prefix correct_errors/decode_audio with 'do_'.
Pass imbe_decoder to voice_du_handler and have the op25_decoder_ff own the object.

git-svn-id: http://op25.osmocom.org/svn/trunk@170 65a5c917-d112-43f1-993d-58c26a4786be
2009-09-08 00:15:52 +00:00
stevie fa75c57851 Add msgq to op25_decoder_ff to permit passing of snapshots to UI.
Change swabbing to use a bit decoding map, make argument types template parameters (so bvec/bit_vector can be interchanged).
Use a bit_queue (deque<bool>) for the frame buffer, pass this to all data_unit constructors.
Add plumbing to send snapshot to the UI.
New voice_data_unit as result of re-factoring LDU1/LDU2.
Re-factor op25_decoder_ff to use the bit_queue for correlation and frame header (and body - but that's ignored just now).


git-svn-id: http://op25.osmocom.org/svn/trunk@135 65a5c917-d112-43f1-993d-58c26a4786be
2009-01-28 04:50:25 +00:00
stevie c8b6064cf7 Fiddle with bit swabbing stuff.
Investigate 32 bit crash (incorrect arg to inline function call).
Warning - only tested on 32 bit PC, need to regression test on 64 bit.

git-svn-id: http://op25.osmocom.org/svn/trunk@129 65a5c917-d112-43f1-993d-58c26a4786be
2009-01-11 11:55:59 +00:00
stevie 0ab01d0e1e Bring TUN/TAP interface up when program begins.
Change interface to data_unit.
 Make LDU1/2 call the IMBE decoder.

git-svn-id: http://op25.osmocom.org/svn/trunk@111 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-15 07:46:10 +00:00
stevie 7650800ade Have data_unit::make_data_unit accept the frame body in a const_bit_vector.
Move BCH decoding back into op25_decoder_ff, it belongs there.
Refactor so different classes do the expected jobs (even though no class actually does anything yet).

git-svn-id: http://op25.osmocom.org/svn/trunk@104 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-02 02:47:56 +00:00
stevie 26e24d1145 Add imbe_decoder interface, drop bch.cc, use bitset<N> to represent NID fields, add bit swabbing, implement BCH decoding using IT++.
git-svn-id: http://op25.osmocom.org/svn/trunk@103 65a5c917-d112-43f1-993d-58c26a4786be
2008-12-01 04:24:15 +00:00
stevie 8ffe3f8129 Change names of concrete data_unit classes to same form.
Add imbe_decoder interface which.
Add new error-correction and decoding functions to abstract_data_unit.

git-svn-id: http://op25.osmocom.org/svn/trunk@99 65a5c917-d112-43f1-993d-58c26a4786be
2008-11-09 22:41:29 +00:00