12 #ifndef INCLUDE_DECODER_UTIL_H_ 13 #define INCLUDE_DECODER_UTIL_H_ void decoder_output_bitrowf(r_device *decoder, bitrow_t const bitrow, unsigned bit_len, char const *restrict format,...)
Output a message with args and the content of a bit row (byte buffer).
Definition: decoder_util.c:99
void bitbuffer_debugf(const bitbuffer_t *bitbuffer, char const *restrict format,...)
Debug print the content of the bitbuffer.
Definition: decoder_util.c:40
void decoder_output_message(r_device *decoder, char const *msg)
Output a message.
Definition: decoder_util.c:116
void decoder_output_bitbuffer_array(r_device *decoder, bitbuffer_t const *bitbuffer, char const *msg)
Output a message and the content of a bitbuffer.
Definition: decoder_util.c:193
void decoder_output_data(r_device *decoder, data_t *data)
Output data.
Definition: decoder_util.c:111
void decoder_output_bitrow(r_device *decoder, bitrow_t const bitrow, unsigned bit_len, char const *msg)
Output a message and the content of a bit row (byte buffer).
Definition: decoder_util.c:233
void decoder_output_messagef(r_device *decoder, char const *restrict format,...)
Output a message with args.
Definition: decoder_util.c:69
A two-dimensional bit buffer consisting of bytes.
uint8_t bitrow_t[BITBUF_COLS]
Definition: bitbuffer.h:21
void bitrow_debugf(bitrow_t const bitrow, unsigned bit_len, char const *restrict format,...)
Debug print the content of a bit row (byte buffer).
Definition: decoder_util.c:58
Device protocol decoder struct.
Definition: r_device.h:41
Bit buffer.
Definition: bitbuffer.h:25
void decoder_output_bitbuffer_arrayf(r_device *decoder, bitbuffer_t const *bitbuffer, char const *restrict format,...)
Output a message with args and the content of a bitbuffer.
Definition: decoder_util.c:89
Definition of r_device struct.
void decoder_output_bitbufferf(r_device *decoder, bitbuffer_t const *bitbuffer, char const *restrict format,...)
Output a message with args and the content of a bitbuffer.
Definition: decoder_util.c:79
void bitrow_printf(bitrow_t const bitrow, unsigned bit_len, char const *restrict format,...)
Print the content of a bit row (byte buffer).
Definition: decoder_util.c:49
void decoder_output_bitbuffer(r_device *decoder, bitbuffer_t const *bitbuffer, char const *msg)
Output a message and the content of a bitbuffer.
Definition: decoder_util.c:147
void bitbuffer_printf(const bitbuffer_t *bitbuffer, char const *restrict format,...)
Print the content of the bitbuffer.
Definition: decoder_util.c:31
r_device * create_device(r_device *dev_template)
Create a new r_device, copy from dev_template if not NULL.
Definition: decoder_util.c:20