mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Windows VCP detection is now more reliable
This commit is contained in:
@@ -8,7 +8,7 @@ namespace icsneo {
|
|||||||
class FTDI : public VCP {
|
class FTDI : public VCP {
|
||||||
public:
|
public:
|
||||||
FTDI(device_errorhandler_t err, neodevice_t& forDevice) : VCP(err, forDevice) {}
|
FTDI(device_errorhandler_t err, neodevice_t& forDevice) : VCP(err, forDevice) {}
|
||||||
static std::vector<neodevice_t> FindByProduct(int product) { return VCP::FindByProduct(product, L"serenum"); }
|
static std::vector<neodevice_t> FindByProduct(int product) { return VCP::FindByProduct(product, { L"serenum", L"ftdibus" }); }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace icsneo {
|
|||||||
class STM32 : public VCP {
|
class STM32 : public VCP {
|
||||||
public:
|
public:
|
||||||
STM32(device_errorhandler_t err, neodevice_t& forDevice) : VCP(err, forDevice) {}
|
STM32(device_errorhandler_t err, neodevice_t& forDevice) : VCP(err, forDevice) {}
|
||||||
static std::vector<neodevice_t> FindByProduct(int product) { return VCP::FindByProduct(product, L"usbser"); }
|
static std::vector<neodevice_t> FindByProduct(int product) { return VCP::FindByProduct(product, { L"usbser" }); }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace icsneo {
|
|||||||
// Virtual COM Port Communication
|
// Virtual COM Port Communication
|
||||||
class VCP : public ICommunication {
|
class VCP : public ICommunication {
|
||||||
public:
|
public:
|
||||||
static std::vector<neodevice_t> FindByProduct(int product, wchar_t* driverName);
|
static std::vector<neodevice_t> FindByProduct(int product, std::vector<std::wstring> driverName);
|
||||||
static bool IsHandleValid(neodevice_handle_t handle);
|
static bool IsHandleValid(neodevice_handle_t handle);
|
||||||
typedef void(*fn_boolCallback)(bool success);
|
typedef void(*fn_boolCallback)(bool success);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user