lfrfid_protocols.h 808 B

12345678910111213141516171819202122232425262728293031323334353637
  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. LFRFIDProtocolIndala26,
  12. LFRFIDProtocolIOProxXSF,
  13. LFRFIDProtocolAwid,
  14. LFRFIDProtocolFDXA,
  15. LFRFIDProtocolFDXB,
  16. LFRFIDProtocolHidGeneric,
  17. LFRFIDProtocolHidExGeneric,
  18. LFRFIDProtocolParadox,
  19. LFRFIDProtocolPACStanley,
  20. LFRFIDProtocolMax,
  21. } LFRFIDProtocol;
  22. extern const ProtocolBase* lfrfid_protocols[];
  23. typedef enum {
  24. LFRFIDWriteTypeT5577,
  25. } LFRFIDWriteType;
  26. typedef struct {
  27. LFRFIDWriteType write_type;
  28. union {
  29. LFRFIDT5577 t5577;
  30. };
  31. } LFRFIDWriteRequest;