* drivers: expose st25r3916 driver API * nfc poller: add start with custom callback * mf classic: rework sync API with poller custom start * mf ultralight: rework sync API with poller custom start * iso14443_3a poller: remove unused col res state * nfc: rework nfc poller custom start * mf ultralight: rename sync API * mf classic: rename sync API * iso14443-3a: rename sync API * nfc: remove async prefix in internal functions * nfc: expose internal API * nfc: fix sync api include and docs * targets: fix f18 build * nfc: rework NfcGenericEventEx type * nfc poller: add documentation * iso14443-3a poller: add documentation * felica poller: add documentation * iso14443_3b poller: add documentation * so14443_4a poller: add documentation * iso14443_4b poller: add documentation * iso15693 poller: add documentation * slix poller: add documentation * mf desfire poller: add documentation * mf ultralight poller: fix API and add documentation * mf classic poller: add documentation Co-authored-by: あく <alleteam@gmail.com>
48 lines
1014 B
C
48 lines
1014 B
C
#pragma once
|
|
|
|
#include "st25tb.h"
|
|
#include <lib/nfc/nfc.h>
|
|
|
|
#include <nfc/nfc_poller.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct St25tbPoller St25tbPoller;
|
|
|
|
typedef enum {
|
|
St25tbPollerEventTypeError,
|
|
St25tbPollerEventTypeReady,
|
|
} St25tbPollerEventType;
|
|
|
|
typedef struct {
|
|
St25tbError error;
|
|
} St25tbPollerEventData;
|
|
|
|
typedef struct {
|
|
St25tbPollerEventType type;
|
|
St25tbPollerEventData* data;
|
|
} St25tbPollerEvent;
|
|
|
|
St25tbError st25tb_poller_send_frame(
|
|
St25tbPoller* instance,
|
|
const BitBuffer* tx_buffer,
|
|
BitBuffer* rx_buffer,
|
|
uint32_t fwt);
|
|
|
|
St25tbError st25tb_poller_initiate(St25tbPoller* instance, uint8_t* chip_id);
|
|
|
|
St25tbError st25tb_poller_activate(St25tbPoller* instance, St25tbData* data);
|
|
|
|
St25tbError st25tb_poller_get_uid(St25tbPoller* instance, uint8_t* uid);
|
|
|
|
St25tbError
|
|
st25tb_poller_read_block(St25tbPoller* instance, uint32_t* block, uint8_t block_number);
|
|
|
|
St25tbError st25tb_poller_halt(St25tbPoller* instance);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|