1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00
Files
unleashed-firmware/lib/nfc/helpers/nfc_generators.h

29 lines
544 B
C
Raw Permalink Normal View History

#pragma once
#include "../nfc_device.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*NfcGeneratorFunc)(NfcDeviceData* data);
typedef struct {
const char* name;
NfcGeneratorFunc generator_func;
} NfcGenerator;
extern const NfcGenerator* const nfc_generators[];
void nfc_generate_mf_classic(NfcDeviceData* data, uint8_t uid_len, MfClassicType type);
void nfc_generate_mf_classic_ext(
NfcDeviceData* data,
uint8_t uid_len,
MfClassicType type,
bool random_uid,
uint8_t* uid);
#ifdef __cplusplus
}
#endif