dolphin_deed.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. DolphinAppPlugin,
  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. DolphinDeedNfcDetectReader,
  32. DolphinDeedNfcEmulate,
  33. DolphinDeedNfcMfcAdd,
  34. DolphinDeedNfcAddSave,
  35. DolphinDeedNfcAddEmulate,
  36. DolphinDeedIrSend,
  37. DolphinDeedIrLearnSuccess,
  38. DolphinDeedIrSave,
  39. DolphinDeedIbuttonRead,
  40. DolphinDeedIbuttonReadSuccess,
  41. DolphinDeedIbuttonSave,
  42. DolphinDeedIbuttonEmulate,
  43. DolphinDeedIbuttonAdd,
  44. DolphinDeedBadUsbPlayScript,
  45. DolphinDeedU2fAuthorized,
  46. DolphinDeedGpioUartBridge,
  47. DolphinDeedPluginStart,
  48. DolphinDeedPluginGameStart,
  49. DolphinDeedPluginGameWin,
  50. DolphinDeedMAX,
  51. DolphinDeedTestLeft,
  52. DolphinDeedTestRight,
  53. } DolphinDeed;
  54. typedef struct {
  55. uint8_t icounter;
  56. DolphinApp app;
  57. } DolphinDeedWeight;
  58. typedef struct {
  59. DolphinApp app;
  60. uint8_t icounter_limit;
  61. } DolphinDeedLimits;
  62. DolphinApp dolphin_deed_get_app(DolphinDeed deed);
  63. uint8_t dolphin_deed_get_app_limit(DolphinApp app);
  64. uint8_t dolphin_deed_get_weight(DolphinDeed deed);
  65. #ifdef __cplusplus
  66. }
  67. #endif