Commit Graph

30 Commits

Author SHA1 Message Date
Benjamin Larsson
0a0ea273c6 Silence CSA issue
Result of operation is garbage or undefined
2018-12-07 21:40:35 +01:00
Christian W. Zuckschwerdt
8848a112f1 Fix print_bitbuffer binary by Geoff99 2018-11-26 08:02:42 +01:00
Christian W. Zuckschwerdt
e4a8d5a8cb Fix compiler warning on signedness 2018-11-20 12:08:02 +01:00
Christian W. Zuckschwerdt
bff9907b60 Add bitbuffer_debug, bitrow_print, bitrow_debug 2018-11-17 13:37:25 +01:00
Christian W. Zuckschwerdt
b9da9d8df2 Mask off bottom bits in bitbuffer_extract_bytes() 2018-11-01 14:24:20 +01:00
Christian W. Zuckschwerdt
21598e75fa Typo fixes by Joanne Dow 2018-09-30 18:02:59 +02:00
Christian W. Zuckschwerdt
016d8d2834 Fix bitbuffer_parse to be sane about empty row specs 2018-08-04 16:14:23 +02:00
Gisle Vanem
e9502e60e1 Make printout aligned (#761)
Align the printout of a bitbuffer_t with columns aligned
2018-07-11 08:40:25 +02:00
Christian W. Zuckschwerdt
2a56042796 Add Pacific PMV-C210 TMPS support (#717) 2018-05-19 11:59:59 +02:00
Christian W. Zuckschwerdt
d4dd87fdc1 fix bitbuffer_extract_bytes clipping unaligned bits 2018-02-23 07:17:52 +01:00
Christian W. Zuckschwerdt
97f770b75e add sync pulse count to bitbuffer 2018-01-21 18:08:03 +01:00
Christian W. Zuckschwerdt
cce12f40db use bitbuffer_clear for bitbuffer_parse 2018-01-05 11:59:25 +01:00
Christian W. Zuckschwerdt
87ef432f5b refactor bitbuffer_parse 2018-01-05 11:25:51 +01:00
Tommy Vestermark
f4d4a2b893 bitbuffer: Handle row overflow a bit more gracefully
Last row will be cleared and overwritten
2017-08-01 20:27:13 +02:00
Christian W. Zuckschwerdt
9e6d99cd6a normalize indentation to 4 spaces or one tab, depending on prevalence in each file 2017-05-14 19:19:39 +02:00
Christian W. Zuckschwerdt
38b0693f08 delete stray trailing whitespace 2017-05-14 19:19:39 +02:00
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