Implement get USB data in Linux.

This commit is contained in:
2019-10-18 01:12:19 +01:00
parent 62e90e0519
commit 3b646d5d76
5 changed files with 226 additions and 2 deletions

View File

@@ -44,4 +44,12 @@ int32_t linux_get_sdhci_registers(const char* devicePath,
uint32_t* cid_len,
uint32_t* ocr_len,
uint32_t* scr_len);
uint8_t linux_get_usb_data(const char* devicePath,
uint16_t* descLen,
char* descriptors,
uint16_t* idVendor,
uint16_t* idProduct,
char* manufacturer,
char* product,
char* serial);
#endif // DICREMOTE_LINUX_H