summaryrefslogtreecommitdiff
path: root/backend/genesys/test_usb_device.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-24 18:44:51 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-24 18:44:51 +0200
commitad38bc6ecb80ddeb562841b33258dd53659b1da6 (patch)
treee02e9c3ff760554fd87f70df0e18b88594091a48 /backend/genesys/test_usb_device.h
parent9c23ed018d72eed2554f4f9cff1ae6e6bb0cd479 (diff)
New upstream version 1.0.31upstream/1.0.31
Diffstat (limited to 'backend/genesys/test_usb_device.h')
-rw-r--r--backend/genesys/test_usb_device.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/genesys/test_usb_device.h b/backend/genesys/test_usb_device.h
index abbd78a..03b49cc 100644
--- a/backend/genesys/test_usb_device.h
+++ b/backend/genesys/test_usb_device.h
@@ -50,9 +50,7 @@ namespace genesys {
class TestUsbDevice : public IUsbDevice {
public:
- TestUsbDevice(std::uint16_t vendor, std::uint16_t product);
- TestUsbDevice() = default;
-
+ TestUsbDevice(std::uint16_t vendor, std::uint16_t product, std::uint16_t bcd_device);
~TestUsbDevice() override;
bool is_open() const override { return is_open_; }
@@ -65,7 +63,9 @@ public:
void reset() override;
void close() override;
- void get_vendor_product(int& vendor, int& product) override;
+ std::uint16_t get_vendor_id() override;
+ std::uint16_t get_product_id() override;
+ std::uint16_t get_bcd_device() override;
void control_msg(int rtype, int reg, int value, int index, int length,
std::uint8_t* data) override;
@@ -78,6 +78,7 @@ private:
bool is_open_ = false;
std::uint16_t vendor_ = 0;
std::uint16_t product_ = 0;
+ std::uint16_t bcd_device_ = 0;
};
} // namespace genesys