Loading...
Searching...
No Matches
furi_hal_usb_hid_u2f.h
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#define HID_U2F_PACKET_LEN 64
8
9typedef enum {
10 HidU2fDisconnected,
11 HidU2fConnected,
12 HidU2fRequest,
13} HidU2fEvent;
14
15typedef void (*HidU2fCallback)(HidU2fEvent ev, void* context);
16
21bool furi_hal_hid_u2f_is_connected(void);
22
28void furi_hal_hid_u2f_set_callback(HidU2fCallback cb, void* ctx);
29
33uint32_t furi_hal_hid_u2f_get_request(uint8_t* data);
34
40void furi_hal_hid_u2f_send_response(uint8_t* data, uint8_t len);
41
42#ifdef __cplusplus
43}
44#endif