7 #ifndef __PVDEVICEINFOU3V_H__
8 #define __PVDEVICEINFOU3V_H__
10 #include <PvDeviceInfoUSB.h>
22 uint32_t GetGenCPVersion()
const;
23 uint32_t GetU3VVersion()
const;
33 bool IsLowSpeedSupported()
const;
34 bool IsFullSpeedSupported()
const;
35 bool IsHighSpeedSupported()
const;
36 bool IsSuperSpeedSupported()
const;
37 bool IsCurrentSpeedSupported()
const;
41 uint32_t GetMaxPower()
const;
42 uint32_t GetMaxPacketSize()
const;
44 bool IsPleoraDriverInstalled()
const;
45 bool IsInitializedCapabilities()
const;
49 #ifndef PV_GENERATING_DOXYGEN_DOC
55 void SetGenCPVersion( uint32_t aValue ) { mGenCPVersion = aValue; }
56 void SetU3VVersion( uint32_t aValue ) { mU3VVersion = aValue; }
58 void SetDeviceGUID(
const std::string &aValue ) { *mDeviceGUID = aValue; }
59 void SetFamilyName(
const std::string &aValue ) { *mFamilyName = aValue; }
60 void SetU3VSerialNumber(
const std::string &aValue ) { *mU3VSerialNumber = aValue; }
61 void SetDevicePath(
const std::string &aValue ) { *mDevicePath = aValue; }
62 void SetDeviceKey(
const std::string &aValue ) { *mDeviceKey = aValue; }
63 void SetSpeedMessage(
const std::string &aValue ) { *mSpeedMessage = aValue; }
64 void SetPowerMessage(
const std::string &aValue ) { *mPowerMessage = aValue; }
66 void SetLowSpeedSupported(
bool aValue ) { mLowSpeedSupported = aValue; }
67 void SetFullSpeedSupported(
bool aValue ) { mFullSpeedSupported = aValue; }
68 void SetHighSpeedSupported(
bool aValue ) { mHighSpeedSupported = aValue; }
69 void SetSuperSpeedSupported(
bool aValue ) { mSuperSpeedSupported = aValue; }
70 void SetCurrentSpeedSupported(
bool aValue ) { mCurrentSpeedSupported = aValue; }
72 void SetSpeed(
PvUSBSpeed aValue ) { mSpeed = aValue; }
74 void SetMaxPower( uint32_t aValue ) { mMaxPower = aValue; }
75 void SetMaxPacketSize( uint32_t aValue ) { mMaxPacketSize = aValue; }
77 void SetPleoraDriverInstalled(
bool aValue ) { mPleoraDriverInstalled = aValue; }
78 void SetInitializedCapabilities(
bool aValue ) { mInitializedCapabilities = aValue; }
80 #endif // PV_GENERATING_DOXYGEN_DOC
87 uint32_t mGenCPVersion;
90 std::string *mDeviceGUID;
91 std::string *mFamilyName;
92 std::string *mU3VSerialNumber;
93 std::string *mDevicePath;
94 std::string *mDeviceKey;
95 std::string *mSpeedMessage;
96 std::string *mPowerMessage;
98 bool mLowSpeedSupported;
99 bool mFullSpeedSupported;
100 bool mHighSpeedSupported;
101 bool mSuperSpeedSupported;
102 bool mCurrentSpeedSupported;
103 bool mInitializedCapabilities;
108 uint32_t mMaxPacketSize;
110 bool mPleoraDriverInstalled;