Loading...
Searching...
No Matches
protocol_dallas_base.h
1#pragma once
2
3#include "../protocol_common_i.h"
4
7
9
10typedef bool (*iButtonProtocolDallasReadWriteFunc)(OneWireHost*, iButtonProtocolData*);
11typedef void (*iButtonProtocolDallasEmulateFunc)(OneWireSlave*, iButtonProtocolData*);
12typedef bool (*iButtonProtocolDallasSaveFunc)(FlipperFormat*, const iButtonProtocolData*);
13typedef bool (*iButtonProtocolDallasLoadFunc)(FlipperFormat*, uint32_t, iButtonProtocolData*);
14typedef void (*iButtonProtocolDallasRenderDataFunc)(FuriString*, const iButtonProtocolData*);
15typedef bool (*iButtonProtocolDallasIsValidFunc)(const iButtonProtocolData*);
16typedef void (
17 *iButtonProtocolDallasGetEditableDataFunc)(iButtonEditableData*, iButtonProtocolData*);
18typedef void (*iButtonProtocolDallasApplyEditsFunc)(iButtonProtocolData*);
19
20typedef struct {
21 const uint8_t family_code;
22 const uint32_t features;
23 const size_t data_size;
24 const char* manufacturer;
25 const char* name;
26
27 iButtonProtocolDallasReadWriteFunc read;
28 iButtonProtocolDallasReadWriteFunc write_id;
29 iButtonProtocolDallasReadWriteFunc write_copy;
30 iButtonProtocolDallasEmulateFunc emulate;
31 iButtonProtocolDallasSaveFunc save;
32 iButtonProtocolDallasLoadFunc load;
33 iButtonProtocolDallasRenderDataFunc render_uid;
34 iButtonProtocolDallasRenderDataFunc render_data;
35 iButtonProtocolDallasRenderDataFunc render_brief_data;
36 iButtonProtocolDallasRenderDataFunc render_error;
37 iButtonProtocolDallasIsValidFunc is_valid;
38 iButtonProtocolDallasGetEditableDataFunc get_editable_data;
39 iButtonProtocolDallasApplyEditsFunc apply_edits;
Flipper File Format helper library.
1-Wire host (master) library
1-Wire slave library.
Definition flipper_format.c:12
Definition string.c:4
Definition one_wire_host.c:49
Definition one_wire_slave.c:31
Definition protocol_common.h:18
Definition protocol_dallas_base.h:20