mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
cf8c82c451
* Initial MFPlus draft * Proper detection (WIP) * Mifare Plus detection done * Bump F18 API * Alloc takes no arguments * Fixes from code review * Remove leftover logging * Remove stray reminder comment * Review changes and extra logging * Fix atqa detection * Fix incorrect comparison * ATQA byte swap fix * mf plus: code clean up * mf plus: remove unused code * mf plus: fix read fail event handling * mf plus: fix return error codes * mf plus: handle load and save errors * mf plus: assert -> check in public API funxtion * Bump API Symbols version * Fix wrong feature mask * Skylanders plugin separation * Fix navigation * Fix info box size Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
/**
|
|
* @file nfc_device_defs.c
|
|
* @brief Main NFC device implementation definitions.
|
|
*
|
|
* All NFC device implementations must be registered here in order to be used
|
|
* by the NfcDevice library.
|
|
*
|
|
* @see nfc_device.h
|
|
*
|
|
* This file is to be modified upon adding a new protocol (see below).
|
|
*/
|
|
#include "nfc_device_base_i.h"
|
|
#include "nfc_protocol.h"
|
|
|
|
#include <nfc/protocols/iso14443_3a/iso14443_3a_device_defs.h>
|
|
#include <nfc/protocols/iso14443_3b/iso14443_3b_device_defs.h>
|
|
#include <nfc/protocols/iso14443_4a/iso14443_4a_device_defs.h>
|
|
#include <nfc/protocols/iso14443_4b/iso14443_4b_device_defs.h>
|
|
#include <nfc/protocols/iso15693_3/iso15693_3_device_defs.h>
|
|
#include <nfc/protocols/felica/felica.h>
|
|
#include <nfc/protocols/mf_ultralight/mf_ultralight.h>
|
|
#include <nfc/protocols/mf_classic/mf_classic.h>
|
|
#include <nfc/protocols/mf_plus/mf_plus.h>
|
|
#include <nfc/protocols/mf_desfire/mf_desfire.h>
|
|
#include <nfc/protocols/slix/slix_device_defs.h>
|
|
#include <nfc/protocols/st25tb/st25tb.h>
|
|
|
|
/**
|
|
* @brief List of registered NFC device implementations.
|
|
*
|
|
* When implementing a new protocol, add its implementation
|
|
* here under its own index defined in nfc_protocol.h.
|
|
*/
|
|
const NfcDeviceBase* nfc_devices[NfcProtocolNum] = {
|
|
[NfcProtocolIso14443_3a] = &nfc_device_iso14443_3a,
|
|
[NfcProtocolIso14443_3b] = &nfc_device_iso14443_3b,
|
|
[NfcProtocolIso14443_4a] = &nfc_device_iso14443_4a,
|
|
[NfcProtocolIso14443_4b] = &nfc_device_iso14443_4b,
|
|
[NfcProtocolIso15693_3] = &nfc_device_iso15693_3,
|
|
[NfcProtocolFelica] = &nfc_device_felica,
|
|
[NfcProtocolMfUltralight] = &nfc_device_mf_ultralight,
|
|
[NfcProtocolMfClassic] = &nfc_device_mf_classic,
|
|
[NfcProtocolMfPlus] = &nfc_device_mf_plus,
|
|
[NfcProtocolMfDesfire] = &nfc_device_mf_desfire,
|
|
[NfcProtocolSlix] = &nfc_device_slix,
|
|
[NfcProtocolSt25tb] = &nfc_device_st25tb,
|
|
/* Add new protocols here */
|
|
};
|