mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-20 17:53:20 +00:00
b9a766d909
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
77 lines
1.5 KiB
C
77 lines
1.5 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
DolphinAppSubGhz,
|
|
DolphinAppRfid,
|
|
DolphinAppNfc,
|
|
DolphinAppIr,
|
|
DolphinAppIbutton,
|
|
DolphinAppBadusb,
|
|
DolphinAppU2f,
|
|
DolphinAppMAX,
|
|
} DolphinApp;
|
|
|
|
typedef enum {
|
|
DolphinDeedSubGhzReceiverInfo,
|
|
DolphinDeedSubGhzSave,
|
|
DolphinDeedSubGhzRawRec,
|
|
DolphinDeedSubGhzAddManually,
|
|
DolphinDeedSubGhzSend,
|
|
DolphinDeedSubGhzFrequencyAnalyzer,
|
|
|
|
DolphinDeedRfidRead,
|
|
DolphinDeedRfidReadSuccess,
|
|
DolphinDeedRfidSave,
|
|
DolphinDeedRfidEmulate,
|
|
DolphinDeedRfidAdd,
|
|
|
|
DolphinDeedNfcRead,
|
|
DolphinDeedNfcReadSuccess,
|
|
DolphinDeedNfcSave,
|
|
DolphinDeedNfcEmulate,
|
|
DolphinDeedNfcAdd,
|
|
|
|
DolphinDeedIrSend,
|
|
DolphinDeedIrLearnSuccess,
|
|
DolphinDeedIrSave,
|
|
DolphinDeedIrBruteForce,
|
|
|
|
DolphinDeedIbuttonRead,
|
|
DolphinDeedIbuttonReadSuccess,
|
|
DolphinDeedIbuttonSave,
|
|
DolphinDeedIbuttonEmulate,
|
|
DolphinDeedIbuttonAdd,
|
|
|
|
DolphinDeedBadUsbPlayScript,
|
|
|
|
DolphinDeedU2fAuthorized,
|
|
|
|
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
|