mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-20 01:33:18 +00:00
87 lines
1.7 KiB
C
87 lines
1.7 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
DolphinAppSubGhz,
|
|
DolphinAppRfid,
|
|
DolphinAppNfc,
|
|
DolphinAppIr,
|
|
DolphinAppIbutton,
|
|
DolphinAppBadusb,
|
|
DolphinAppU2f,
|
|
DolphinAppGpio,
|
|
DolphinAppPlugin,
|
|
DolphinAppMAX,
|
|
} DolphinApp;
|
|
|
|
typedef enum {
|
|
DolphinDeedSubGhzReceiverInfo,
|
|
DolphinDeedSubGhzSave,
|
|
DolphinDeedSubGhzRawRec,
|
|
DolphinDeedSubGhzAddManually,
|
|
DolphinDeedSubGhzSend,
|
|
DolphinDeedSubGhzFrequencyAnalyzer,
|
|
|
|
DolphinDeedRfidRead,
|
|
DolphinDeedRfidReadSuccess,
|
|
DolphinDeedRfidSave,
|
|
DolphinDeedRfidEmulate,
|
|
DolphinDeedRfidAdd,
|
|
|
|
DolphinDeedNfcRead,
|
|
DolphinDeedNfcReadSuccess,
|
|
DolphinDeedNfcSave,
|
|
DolphinDeedNfcDetectReader,
|
|
DolphinDeedNfcEmulate,
|
|
DolphinDeedNfcMfcAdd,
|
|
DolphinDeedNfcMfulError,
|
|
DolphinDeedNfcAddSave,
|
|
|
|
DolphinDeedIrSend,
|
|
DolphinDeedIrLearnSuccess,
|
|
DolphinDeedIrSave,
|
|
|
|
DolphinDeedIbuttonRead,
|
|
DolphinDeedIbuttonReadSuccess,
|
|
DolphinDeedIbuttonSave,
|
|
DolphinDeedIbuttonEmulate,
|
|
DolphinDeedIbuttonAdd,
|
|
|
|
DolphinDeedBadUsbPlayScript,
|
|
|
|
DolphinDeedU2fAuthorized,
|
|
|
|
DolphinDeedGpioUartBridge,
|
|
|
|
DolphinDeedPluginStart,
|
|
DolphinDeedPluginGameStart,
|
|
DolphinDeedPluginGameWin,
|
|
|
|
DolphinDeedMAX,
|
|
|
|
DolphinDeedTestLeft,
|
|
DolphinDeedTestRight,
|
|
} DolphinDeed;
|
|
|
|
typedef struct {
|
|
uint8_t icounter;
|
|
DolphinApp app;
|
|
} DolphinDeedWeight;
|
|
|
|
typedef struct {
|
|
DolphinApp app;
|
|
uint8_t icounter_limit;
|
|
} DolphinDeedLimits;
|
|
|
|
DolphinApp dolphin_deed_get_app(DolphinDeed deed);
|
|
uint8_t dolphin_deed_get_app_limit(DolphinApp app);
|
|
uint8_t dolphin_deed_get_weight(DolphinDeed deed);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|