mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
NFC refactoring (#3050)
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring. Starring: - @gornekich - NFC refactoring project lead, architect, senior developer - @gsurkov - architect, senior developer - @RebornedBrain - senior developer Supporting roles: - @skotopes, @DrZlo13, @hedger - general architecture advisors, code review - @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance Special thanks: @bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
This commit is contained in:
42
lib/signal_reader/parsers/iso15693/iso15693_parser.h
Normal file
42
lib/signal_reader/parsers/iso15693/iso15693_parser.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../signal_reader.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct Iso15693Parser Iso15693Parser;
|
||||
|
||||
typedef enum {
|
||||
Iso15693ParserEventDataReceived,
|
||||
} Iso15693ParserEvent;
|
||||
|
||||
typedef void (*Iso15693ParserCallback)(Iso15693ParserEvent event, void* context);
|
||||
|
||||
Iso15693Parser* iso15693_parser_alloc(const GpioPin* pin, size_t max_frame_size);
|
||||
|
||||
void iso15693_parser_free(Iso15693Parser* instance);
|
||||
|
||||
void iso15693_parser_reset(Iso15693Parser* instance);
|
||||
|
||||
void iso15693_parser_start(
|
||||
Iso15693Parser* instance,
|
||||
Iso15693ParserCallback callback,
|
||||
void* context);
|
||||
|
||||
void iso15693_parser_stop(Iso15693Parser* instance);
|
||||
|
||||
bool iso15693_parser_run(Iso15693Parser* instance);
|
||||
|
||||
size_t iso15693_parser_get_data_size_bytes(Iso15693Parser* instance);
|
||||
|
||||
void iso15693_parser_get_data(
|
||||
Iso15693Parser* instance,
|
||||
uint8_t* buff,
|
||||
size_t buff_size,
|
||||
size_t* data_bits);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user