lfrfid_protocols.h 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include <toolbox/protocols/protocol.h>
  3. #include "../tools/t5577.h"
  4. typedef enum {
  5. LFRFIDFeatureASK = 1 << 0, /** ASK Demodulation */
  6. LFRFIDFeaturePSK = 1 << 1, /** PSK Demodulation */
  7. } LFRFIDFeature;
  8. typedef enum {
  9. LFRFIDProtocolEM4100,
  10. LFRFIDProtocolH10301,
  11. LFRFIDProtocolIdteck,
  12. LFRFIDProtocolIndala26,
  13. LFRFIDProtocolIOProxXSF,
  14. LFRFIDProtocolAwid,
  15. LFRFIDProtocolFDXA,
  16. LFRFIDProtocolFDXB,
  17. LFRFIDProtocolHidGeneric,
  18. LFRFIDProtocolHidExGeneric,
  19. LFRFIDProtocolPyramid,
  20. LFRFIDProtocolViking,
  21. LFRFIDProtocolJablotron,
  22. LFRFIDProtocolParadox,
  23. LFRFIDProtocolPACStanley,
  24. LFRFIDProtocolKeri,
  25. LFRFIDProtocolGallagher,
  26. LFRFIDProtocolMax,
  27. } LFRFIDProtocol;
  28. extern const ProtocolBase* lfrfid_protocols[];
  29. typedef enum {
  30. LFRFIDWriteTypeT5577,
  31. } LFRFIDWriteType;
  32. typedef struct {
  33. LFRFIDWriteType write_type;
  34. union {
  35. LFRFIDT5577 t5577;
  36. };
  37. } LFRFIDWriteRequest;