Commit Graph

14 Commits

Author SHA1 Message Date
Fabian Zaremba
48312e0424 Add initial Elro DB286A support (#398)
* Add initial Elro DB286A support

* Correct line removal

* Declare variables at beginning of block

* Use preprocessor define for constants

* Change 'id' field name to 'code'

* Move check for bitrow length below variable declarations

* Export compare_rows and count_repeats functions

* Use PWM_RAW with appropriate limits to separate messages
Makes it possible to use bitrows directly to check signal,
also to generate hex code instead of binary string

* Correct stray line removal

* Correct file header, add copyright notice

* Move check in front of code generation
2016-07-12 23:31:13 +02:00
igorok107
d7a73d545e Correction data types in bitbuffer_find_repeated_row() 2016-02-07 21:37:29 +03:00
Christian W. Zuckschwerdt
913b51a415 adding a bitbuffer_find_repeated_row() with examples how it simplifies device code 2016-02-04 19:15:46 +01:00
David Woodhouse
4be45997fc Add bitbuffer_extract_bytes() function for accessing unaligned data 2016-01-22 13:13:57 +00:00
Tommy Vestermark
b692da8a35 bitbuffer: Add function to invert bits 2016-01-21 00:03:43 +01:00
Emmanuel N
ba621888ca Add bitbuffer_search() and bitbuffer_manchester_decode() functions
Originally written by Emmanuel N as part of issue #224; modified and
moved to bitbuffer.c by David Woodhouse
2015-12-10 10:15:44 +00:00
Tommy Vestermark
b005d4410a Clean up bitbuffer a bit
num_rows is more logical than row_index for users
2015-07-15 21:03:40 +02:00
Tommy Vestermark
139fad4918 Rename bitbuffer_t::bits_buffer to bitbuffer_t::bb
Better now than later...
2015-07-15 19:47:30 +02:00
Tommy Vestermark
00ff066903 Added binary printout to bitbuffer_print()
For feature parity.. Only print if number of bits is low.
2015-07-14 23:20:38 +02:00
Tommy Vestermark
c0beea4ad3 Make bitbuffer even less noisy
Some decoders with large .short_limit may add a lot of bits...
2015-07-10 21:29:01 +02:00
Tommy Vestermark
9d1e6f5430 Pulse detector: added MIN and MAX gap time before EOP
Implemented minimum and maximum gap times in addition to current
gap/pulse ratio. Changed values to be independent of sample rate.
Also made bitbuffer less noisy for decoders with small .long_limit
Tested with:
rtl_433_tests/tests/ambient_weather/01/f007th.data
rtl_433_tests/tests/cardin/01/S466-TX2_01.data
rtl_433_tests/tests/cardin/01/S466-TX2_02.data
rtl_433_tests/tests/fineoffset/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile001.data
rtl_433_tests/tests/lacrosse/01/gfile002.data
rtl_433_tests/tests/lacrosse/01/gfile006.data
rtl_433_tests/tests/oregon_scientific/01/BTHGN129.data
rtl_433_tests/tests/oregon_scientific/01/BTHR968.data
rtl_433_tests/tests/oregon_scientific/02/gfile003.data
rtl_433_tests/tests/prologue/01/gfile001.data
2015-07-10 18:46:07 +02:00
Tommy Vestermark
5e12ab1044 Minor whitespace cleanup 2015-06-29 22:34:27 +02:00
Tommy Vestermark
7b89c5c119 bitbuffer.c: Add test code and fix an overflow bug 2015-06-29 21:21:52 +02:00
Tommy Vestermark
e5e0e19989 Add pulse demodulator for PWM. Separate bitbuffer into own file.
Made a prototype for a PWM pulse demodulator. Broke out bit_packet
functions into own file to avoid circular references and for clean up.
Compiles cleanly, but untested.
2015-06-28 23:15:56 +02:00