mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 01:03:22 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
36 lines
835 B
C
36 lines
835 B
C
#pragma once
|
|
#include "hid_usage_desktop.h"
|
|
#include "hid_usage_button.h"
|
|
#include "hid_usage_keyboard.h"
|
|
#include "hid_usage_consumer.h"
|
|
#include "hid_usage_led.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
uint16_t vid;
|
|
uint16_t pid;
|
|
char manuf[32];
|
|
char product[32];
|
|
} FuriHalUsbCcidConfig;
|
|
|
|
typedef struct {
|
|
void (*icc_power_on_callback)(uint8_t* dataBlock, uint32_t* dataBlockLen, void* context);
|
|
void (*xfr_datablock_callback)(
|
|
const uint8_t* dataBlock,
|
|
uint32_t dataBlockLen,
|
|
uint8_t* responseDataBlock,
|
|
uint32_t* responseDataBlockLen,
|
|
void* context);
|
|
} CcidCallbacks;
|
|
|
|
void furi_hal_ccid_set_callbacks(CcidCallbacks* cb);
|
|
|
|
void furi_hal_ccid_ccid_insert_smartcard(void);
|
|
void furi_hal_ccid_ccid_remove_smartcard(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|