mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
* Remove BLE from BadUSB * Add the BadBLE app * Format images to 1-bit B/W * BadUsb: remove dead bits and pieces Co-authored-by: あく <alleteam@gmail.com>
35 lines
843 B
C
35 lines
843 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <furi.h>
|
|
#include <furi_hal.h>
|
|
|
|
typedef enum {
|
|
BadBleHidInterfaceBle,
|
|
} BadBleHidInterface;
|
|
|
|
typedef struct {
|
|
void* (*init)(FuriHalUsbHidConfig* hid_cfg);
|
|
void (*deinit)(void* inst);
|
|
void (*set_state_callback)(void* inst, HidStateCallback cb, void* context);
|
|
bool (*is_connected)(void* inst);
|
|
|
|
bool (*kb_press)(void* inst, uint16_t button);
|
|
bool (*kb_release)(void* inst, uint16_t button);
|
|
bool (*consumer_press)(void* inst, uint16_t button);
|
|
bool (*consumer_release)(void* inst, uint16_t button);
|
|
bool (*release_all)(void* inst);
|
|
uint8_t (*get_led_state)(void* inst);
|
|
} BadBleHidApi;
|
|
|
|
const BadBleHidApi* bad_ble_hid_get_interface(BadBleHidInterface interface);
|
|
|
|
void bad_ble_hid_ble_remove_pairing(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|