|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Decoder vtable: pulse symbols to protocol bytes. More...
#include <zephyr/drivers/pulse_io.h>
Data Fields | |
| int(* | decode )(const struct pulse_io_bit_template *tmpl, uint32_t tolerance_ticks, const struct pulse_symbol *in, size_t nsyms, uint8_t *out, size_t out_cap, size_t *produced) |
| Rebuild a byte stream from captured pulse symbols. | |
Decoder vtable: pulse symbols to protocol bytes.
tolerance_ticks gives the per-symbol slack used when matching a captured duration against the bit template, to absorb timing drift on received streams.
| int(* pulse_io_decoder_api::decode) (const struct pulse_io_bit_template *tmpl, uint32_t tolerance_ticks, const struct pulse_symbol *in, size_t nsyms, uint8_t *out, size_t out_cap, size_t *produced) |
Rebuild a byte stream from captured pulse symbols.