lfrfid_protocols.h 862 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. LFRFIDProtocolViking,
  19. LFRFIDProtocolJablotron,
  20. LFRFIDProtocolParadox,
  21. LFRFIDProtocolPACStanley,
  22. LFRFIDProtocolMax,
  23. } LFRFIDProtocol;
  24. extern const ProtocolBase* lfrfid_protocols[];
  25. typedef enum {
  26. LFRFIDWriteTypeT5577,
  27. } LFRFIDWriteType;
  28. typedef struct {
  29. LFRFIDWriteType write_type;
  30. union {
  31. LFRFIDT5577 t5577;
  32. };
  33. } LFRFIDWriteRequest;