Loading...
Searching...
No Matches
iso15693_parser.h
1#pragma once
2
3#include "../../signal_reader.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct Iso15693Parser Iso15693Parser;
10
11typedef enum {
12 Iso15693ParserEventDataReceived,
13} Iso15693ParserEvent;
14
15typedef void (*Iso15693ParserCallback)(Iso15693ParserEvent event, void* context);
16
17Iso15693Parser* iso15693_parser_alloc(const GpioPin* pin, size_t max_frame_size);
18
19void iso15693_parser_free(Iso15693Parser* instance);
20
21void iso15693_parser_reset(Iso15693Parser* instance);
22
23void iso15693_parser_start(
24 Iso15693Parser* instance,
25 Iso15693ParserCallback callback,
26 void* context);
27
28void iso15693_parser_stop(Iso15693Parser* instance);
29
30bool iso15693_parser_run(Iso15693Parser* instance);
31
32size_t iso15693_parser_get_data_size_bytes(Iso15693Parser* instance);
33
34void iso15693_parser_get_data(
35 Iso15693Parser* instance,
36 uint8_t* buff,
37 size_t buff_size,
38 size_t* data_bits);
39
40#ifdef __cplusplus
41}
42#endif
Gpio structure.
Definition furi_hal_gpio.h:161
Definition iso15693_parser.c:26