Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pulse_io_decoder_api Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ decode

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.


The documentation for this struct was generated from the following file: