5#include <lib/toolbox/level_duration.h>
8typedef void* (*ProtocolAlloc)(void);
9typedef void (*ProtocolFree)(
void* protocol);
10typedef uint8_t* (*ProtocolGetData)(
void* protocol);
12typedef void (*ProtocolDecoderStart)(
void* protocol);
13typedef bool (*ProtocolDecoderFeed)(
void* protocol,
bool level, uint32_t duration);
15typedef bool (*ProtocolEncoderStart)(
void* protocol);
18typedef void (*ProtocolRenderData)(
void* protocol,
FuriString* result);
19typedef bool (*ProtocolWriteData)(
void* protocol,
void* data);
22 ProtocolDecoderStart start;
23 ProtocolDecoderFeed feed;
27 ProtocolEncoderStart start;
28 ProtocolEncoderYield yield;
32 const size_t data_size;
34 const char* manufacturer;
35 const uint32_t features;
36 const uint8_t validate_count;
40 ProtocolGetData get_data;
43 ProtocolRenderData render_uid;
44 ProtocolRenderData render_data;
45 ProtocolRenderData render_brief_data;
46 ProtocolWriteData write_data;
Definition level_duration.h:15