Add option to verify simulated decoding of raw data

This commit is contained in:
Christian W. Zuckschwerdt
2017-07-14 16:56:18 +02:00
committed by Benjamin Larsson
parent 413f31f7ad
commit 9c3cecf681
4 changed files with 93 additions and 2 deletions

View File

@@ -138,4 +138,14 @@ int pulse_demod_clock_bits(const pulse_data_t *pulses, struct protocol_state *de
int pulse_demod_osv1(const pulse_data_t *pulses, struct protocol_state *device);
/// Simulate demodulation using a given signal code string
///
/// The (optionally "0x" prefixed) hex code is processed into a bitbuffer_t.
/// Each row is optionally prefixed with a length enclosed in braces "{}" or
/// separated with a slash "/" character. Whitespace is ignored.
/// Device params are disregarded.
/// @return number of events processed
int pulse_demod_string(const char *code, struct protocol_state *device);
#endif /* INCLUDE_PULSE_DEMOD_H_ */