dolphin_deed.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. DolphinAppGpio,
  15. DolphinAppPlugin,
  16. DolphinAppMAX,
  17. } DolphinApp;
  18. typedef enum {
  19. DolphinDeedSubGhzReceiverInfo,
  20. DolphinDeedSubGhzSave,
  21. DolphinDeedSubGhzRawRec,
  22. DolphinDeedSubGhzAddManually,
  23. DolphinDeedSubGhzSend,
  24. DolphinDeedSubGhzFrequencyAnalyzer,
  25. DolphinDeedRfidRead,
  26. DolphinDeedRfidReadSuccess,
  27. DolphinDeedRfidSave,
  28. DolphinDeedRfidEmulate,
  29. DolphinDeedRfidAdd,
  30. DolphinDeedNfcRead,
  31. DolphinDeedNfcReadSuccess,
  32. DolphinDeedNfcSave,
  33. DolphinDeedNfcDetectReader,
  34. DolphinDeedNfcEmulate,
  35. DolphinDeedNfcMfcAdd,
  36. DolphinDeedNfcMfulError,
  37. DolphinDeedNfcAddSave,
  38. DolphinDeedIrSend,
  39. DolphinDeedIrLearnSuccess,
  40. DolphinDeedIrSave,
  41. DolphinDeedIbuttonRead,
  42. DolphinDeedIbuttonReadSuccess,
  43. DolphinDeedIbuttonSave,
  44. DolphinDeedIbuttonEmulate,
  45. DolphinDeedIbuttonAdd,
  46. DolphinDeedBadUsbPlayScript,
  47. DolphinDeedU2fAuthorized,
  48. DolphinDeedGpioUartBridge,
  49. DolphinDeedPluginStart,
  50. DolphinDeedPluginGameStart,
  51. DolphinDeedPluginGameWin,
  52. DolphinDeedMAX,
  53. DolphinDeedTestLeft,
  54. DolphinDeedTestRight,
  55. } DolphinDeed;
  56. typedef struct {
  57. uint8_t icounter;
  58. DolphinApp app;
  59. } DolphinDeedWeight;
  60. typedef struct {
  61. DolphinApp app;
  62. uint8_t icounter_limit;
  63. } DolphinDeedLimits;
  64. DolphinApp dolphin_deed_get_app(DolphinDeed deed);
  65. uint8_t dolphin_deed_get_app_limit(DolphinApp app);
  66. uint8_t dolphin_deed_get_weight(DolphinDeed deed);
  67. #ifdef __cplusplus
  68. }
  69. #endif