nfc_generators.h 544 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "../nfc_device.h"
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef void (*NfcGeneratorFunc)(NfcDeviceData* data);
  7. typedef struct {
  8. const char* name;
  9. NfcGeneratorFunc generator_func;
  10. } NfcGenerator;
  11. extern const NfcGenerator* const nfc_generators[];
  12. void nfc_generate_mf_classic(NfcDeviceData* data, uint8_t uid_len, MfClassicType type);
  13. void nfc_generate_mf_classic_ext(
  14. NfcDeviceData* data,
  15. uint8_t uid_len,
  16. MfClassicType type,
  17. bool random_uid,
  18. uint8_t* uid);
  19. #ifdef __cplusplus
  20. }
  21. #endif