Re: Extended Hamming encode/decode
- From: whygee <yg@xxxxx>
- Date: Sun, 07 Mar 2010 08:58:17 +0100
Jon Kirwan wrote:
Vladimir Vassilevsky wrote:I've never heard of Meggit, however SECDED is often good enoughIf your goal is the absolutely the smallest code, Meggit decoder is a way to go. It is going to be rather slow though. It only takes ~10 lines
of code to decode either of the codes; the decoder is going to be identical except for a couple of constants.
when speed is needed, for example in real-time communications
(radio or long wires anyone ?)
I'll look at it. I'd looked on the web for a short bit andtell us what you end up with :-)
found abstract and overly large examples. But I don't recall
checking that one out yet and it should be worth a moment to
look, I suspect.
The code I wrote is already done and if it suits anyone, it'sI've just downloaded it and had a very short look, and even
there. After looking over a few on the web, I gave up hoping
to find something that fit the need for decent speed _and_
size at one time and just decided to "do it" and move on. But
thanks for the pointer. I'll look it over, tomorrow.
tried to run the test :
$ gcc hamm_08.h hamm_08.c hamm.c -o hamm
$ ./hamm 1 2 3
(stuffs are displayed)
so it seems to work and to be good enough for me :-)
In the meantime, I found a way to slightly shorten and speedgreat !
things up in my case and have moved that version into the old
slot on that link I gave.
thanks for the .zip,
Jonyg
--
http://ygdes.com / http://yasep.org
.
- Follow-Ups:
- Re: Extended Hamming encode/decode
- From: Jon Kirwan
- Re: Extended Hamming encode/decode
- References:
- Extended Hamming encode/decode
- From: Jon Kirwan
- Re: Extended Hamming encode/decode
- From: Vladimir Vassilevsky
- Re: Extended Hamming encode/decode
- From: Jon Kirwan
- Extended Hamming encode/decode
- Prev by Date: Re: ATtiny10, programmed and blinking
- Next by Date: Re: Extended Hamming encode/decode
- Previous by thread: Re: Extended Hamming encode/decode
- Next by thread: Re: Extended Hamming encode/decode
- Index(es):
Relevant Pages
|