CryptoAuthLib
Microchip CryptoAuthentication Library
hal_linux_kit_hid.h
Go to the documentation of this file.
1 
28 #ifndef HAL_LINUX_KIT_HID_H_
29 #define HAL_LINUX_KIT_HID_H_
30 
38 // Kit USB defines
39 #define HID_DEVICES_MAX 10
40 #define HID_PACKET_MAX 512
41 
42 // Each device that is found will have a read handle and a write handle
43 typedef struct hid_device
44 {
45  FILE *read_handle;
46  FILE *write_handle;
47 } hid_device_t;
48 
49 
50 // A structure to hold HID information
51 typedef struct atcahid
52 {
54  int8_t num_kits_found;
55 } atcahid_t;
56 
58 #endif /* HAL_LINUX_KIT_HID_H_ */
Definition: hal_all_platforms_kit_hidapi.h:48
struct atcahid atcahid_t
Definition: hal_linux_kit_hid.h:43
int8_t num_kits_found
Definition: hal_all_platforms_kit_hidapi.h:51
#define HID_DEVICES_MAX
Definition: hal_linux_kit_hid.h:39
FILE * read_handle
Definition: hal_linux_kit_hid.h:45
struct hid_device hid_device_t
FILE * write_handle
The kit USB read file handle.
Definition: hal_linux_kit_hid.h:46
hid_device * kits[HID_DEVICES_MAX]
Definition: hal_all_platforms_kit_hidapi.h:50