Loading...
Searching...
No Matches
furi_hal_usb_ccid.h
1#pragma once
2
3#include "hid_usage_desktop.h"
4#include "hid_usage_button.h"
5#include "hid_usage_keyboard.h"
6#include "hid_usage_consumer.h"
7#include "hid_usage_led.h"
8#include <stdint.h>
9
10#define CCID_SHORT_APDU_SIZE (0xFF)
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct {
17 uint16_t vid;
18 uint16_t pid;
19 char manuf[32];
20 char product[32];
22
23typedef struct {
24 void (*icc_power_on_callback)(uint8_t* dataBlock, uint32_t* dataBlockLen, void* context);
25 void (*xfr_datablock_callback)(
26 const uint8_t* pcToReaderDataBlock,
27 uint32_t pcToReaderDataBlockLen,
28 uint8_t* readerToPcDataBlock,
29 uint32_t* readerToPcDataBlockLen,
30 void* context);
32
38void furi_hal_usb_ccid_set_callbacks(CcidCallbacks* cb, void* context);
39
41void furi_hal_usb_ccid_insert_smartcard(void);
42
44void furi_hal_usb_ccid_remove_smartcard(void);
45
46#ifdef __cplusplus
47}
48#endif
Definition furi_hal_usb_ccid.h:23
Definition furi_hal_usb_ccid.h:16