dolphin_deed.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #pragma once
  2. #include <stdint.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef enum {
  7. DolphinAppSubGhz,
  8. DolphinAppRfid,
  9. DolphinAppNfc,
  10. DolphinAppIr,
  11. DolphinAppIbutton,
  12. DolphinAppBadusb,
  13. DolphinAppU2f,
  14. DolphinAppMAX,
  15. } DolphinApp;
  16. typedef enum {
  17. DolphinDeedSubGhzReceiverInfo,
  18. DolphinDeedSubGhzSave,
  19. DolphinDeedSubGhzRawRec,
  20. DolphinDeedSubGhzAddManually,
  21. DolphinDeedSubGhzSend,
  22. DolphinDeedSubGhzFrequencyAnalyzer,
  23. DolphinDeedRfidRead,
  24. DolphinDeedRfidReadSuccess,
  25. DolphinDeedRfidSave,
  26. DolphinDeedRfidEmulate,
  27. DolphinDeedRfidAdd,
  28. DolphinDeedNfcRead,
  29. DolphinDeedNfcReadSuccess,
  30. DolphinDeedNfcSave,
  31. DolphinDeedNfcEmulate,
  32. DolphinDeedNfcAdd,
  33. DolphinDeedIrSend,
  34. DolphinDeedIrLearnSuccess,
  35. DolphinDeedIrSave,
  36. DolphinDeedIrBruteForce,
  37. DolphinDeedIbuttonRead,
  38. DolphinDeedIbuttonReadSuccess,
  39. DolphinDeedIbuttonSave,
  40. DolphinDeedIbuttonEmulate,
  41. DolphinDeedIbuttonAdd,
  42. DolphinDeedBadUsbPlayScript,
  43. DolphinDeedU2fAuthorized,
  44. DolphinDeedMAX,
  45. DolphinDeedTestLeft,
  46. DolphinDeedTestRight,
  47. } DolphinDeed;
  48. typedef struct {
  49. uint8_t icounter;
  50. DolphinApp app;
  51. } DolphinDeedWeight;
  52. typedef struct {
  53. DolphinApp app;
  54. uint8_t icounter_limit;
  55. } DolphinDeedLimits;
  56. DolphinApp dolphin_deed_get_app(DolphinDeed deed);
  57. uint8_t dolphin_deed_get_app_limit(DolphinApp app);
  58. uint8_t dolphin_deed_get_weight(DolphinDeed deed);
  59. #ifdef __cplusplus
  60. }
  61. #endif