"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.
43 lines
851 B
C
43 lines
851 B
C
#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
|