mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -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/nfc/protocols/iso14443_3a/iso14443_3a_poller.h
Normal file
42
lib/nfc/protocols/iso14443_3a/iso14443_3a_poller.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "iso14443_3a.h"
|
||||
#include <lib/nfc/nfc.h>
|
||||
|
||||
#include <nfc/nfc_poller.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct Iso14443_3aPoller Iso14443_3aPoller;
|
||||
|
||||
typedef enum {
|
||||
Iso14443_3aPollerEventTypeError,
|
||||
Iso14443_3aPollerEventTypeReady,
|
||||
} Iso14443_3aPollerEventType;
|
||||
|
||||
typedef struct {
|
||||
Iso14443_3aError error;
|
||||
} Iso14443_3aPollerEventData;
|
||||
|
||||
typedef struct {
|
||||
Iso14443_3aPollerEventType type;
|
||||
Iso14443_3aPollerEventData* data;
|
||||
} Iso14443_3aPollerEvent;
|
||||
|
||||
Iso14443_3aError iso14443_3a_poller_txrx(
|
||||
Iso14443_3aPoller* instance,
|
||||
const BitBuffer* tx_buffer,
|
||||
BitBuffer* rx_buffer,
|
||||
uint32_t fwt);
|
||||
|
||||
Iso14443_3aError iso14443_3a_poller_send_standard_frame(
|
||||
Iso14443_3aPoller* instance,
|
||||
const BitBuffer* tx_buffer,
|
||||
BitBuffer* rx_buffer,
|
||||
uint32_t fwt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user