mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 05:48:08 +03: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>
42 lines
785 B
C
42 lines
785 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <furi.h>
|
|
|
|
typedef enum {
|
|
U2fNotifyRegister,
|
|
U2fNotifyAuth,
|
|
U2fNotifyAuthSuccess,
|
|
U2fNotifyWink,
|
|
U2fNotifyConnect,
|
|
U2fNotifyDisconnect,
|
|
U2fNotifyError,
|
|
} U2fNotifyEvent;
|
|
|
|
typedef struct U2fData U2fData;
|
|
|
|
typedef void (*U2fEvtCallback)(U2fNotifyEvent evt, void* context);
|
|
|
|
U2fData* u2f_alloc();
|
|
|
|
bool u2f_init(U2fData* instance);
|
|
|
|
void u2f_free(U2fData* instance);
|
|
|
|
void u2f_set_event_callback(U2fData* instance, U2fEvtCallback callback, void* context);
|
|
|
|
void u2f_confirm_user_present(U2fData* instance);
|
|
|
|
uint16_t u2f_msg_parse(U2fData* instance, uint8_t* buf, uint16_t len);
|
|
|
|
void u2f_wink(U2fData* instance);
|
|
|
|
void u2f_set_state(U2fData* instance, uint8_t state);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|