|
duvc-ctl 2.0.0
USB Video Class Camera Control Library
|
Enumerations | |
| enum class | LogitechProperty : uint32_t { RightLight = 1 , RightSound = 2 , FaceTracking = 3 , LedIndicator = 4 , ProcessorUsage = 5 , RawDataBits = 6 , FocusAssist = 7 , VideoStandard = 8 , DigitalZoomROI = 9 , TiltPan = 10 } |
| Logitech vendor property IDs. More... | |
Variables | |
| constexpr GUID | LOGITECH_PROPERTY_SET |
| Logitech vendor-specific property set GUID. | |
Logitech vendor property IDs.
Enumeration of supported Logitech extension unit properties. Values correspond to property IDs within LOGITECH_PROPERTY_SET.
Definition at line 40 of file logitech.h.
| Result< std::vector< uint8_t > > duvc::logitech::get_logitech_property | ( | const Device & | device, |
| LogitechProperty | prop ) |
Get Logitech vendor property as raw byte vector.
| device | Target device to query |
| prop | Logitech property ID to read |
Definition at line 23 of file logitech.cpp.
References DUVC_LOG_ERROR, LOGITECH_PROPERTY_SET, duvc::PropertyNotSupported, and duvc::SystemError.
Referenced by get_logitech_property_typed().
| Result< T > duvc::logitech::get_logitech_property_typed | ( | const Device & | device, |
| LogitechProperty | prop ) |
Get typed Logitech property value.
Template function that reads property data and reinterprets as specified type. Type T must be trivially copyable and match the property's binary layout.
| T | Property value type (must be trivially copyable) |
| device | Target device to query |
| prop | Logitech property ID to read |
Definition at line 90 of file logitech.cpp.
References duvc::Result< T >::error(), get_logitech_property(), duvc::InvalidValue, duvc::Result< T >::is_ok(), duvc::Ok(), and duvc::Result< T >::value().
| template Result< bool > duvc::logitech::get_logitech_property_typed< bool > | ( | const Device & | , |
| LogitechProperty | ) |
| template Result< int32_t > duvc::logitech::get_logitech_property_typed< int32_t > | ( | const Device & | , |
| LogitechProperty | ) |
| template Result< uint32_t > duvc::logitech::get_logitech_property_typed< uint32_t > | ( | const Device & | , |
| LogitechProperty | ) |
| Result< void > duvc::logitech::set_logitech_property | ( | const Device & | device, |
| LogitechProperty | prop, | ||
| const std::vector< uint8_t > & | data ) |
Set Logitech vendor property from raw byte vector.
| device | Target device to modify |
| prop | Logitech property ID to write |
| data | Property data buffer (format depends on property type) |
Definition at line 43 of file logitech.cpp.
References DUVC_LOG_ERROR, LOGITECH_PROPERTY_SET, duvc::PropertyNotSupported, and duvc::SystemError.
Referenced by set_logitech_property_typed().
| Result< void > duvc::logitech::set_logitech_property_typed | ( | const Device & | device, |
| LogitechProperty | prop, | ||
| const T & | value ) |
Set typed Logitech property value.
Template function that writes typed value as raw binary property data. Type T must be trivially copyable and match the property's binary layout.
| T | Property value type (must be trivially copyable) |
| device | Target device to modify |
| prop | Logitech property ID to write |
| value | Property value to set (will be reinterpreted as bytes) |
Definition at line 109 of file logitech.cpp.
References set_logitech_property().
| template Result< void > duvc::logitech::set_logitech_property_typed< bool > | ( | const Device & | , |
| LogitechProperty | , | ||
| const bool & | ) |
| template Result< void > duvc::logitech::set_logitech_property_typed< int32_t > | ( | const Device & | , |
| LogitechProperty | , | ||
| const int32_t & | ) |
| template Result< void > duvc::logitech::set_logitech_property_typed< uint32_t > | ( | const Device & | , |
| LogitechProperty | , | ||
| const uint32_t & | ) |
Check if device supports Logitech vendor properties.
| device | Device to check for Logitech extension unit support |
Definition at line 62 of file logitech.cpp.
References DUVC_LOG_DEBUG, duvc::Result< T >::is_ok(), KSPROPERTY_SUPPORT_GET, KSPROPERTY_SUPPORT_SET, LOGITECH_PROPERTY_SET, duvc::Ok(), RightLight, and duvc::Result< T >::value().
Logitech vendor-specific property set GUID.
Identifies Logitech's UVC extension unit for all vendor properties. Defined as inline constexpr for C++17 compatibility without ODR violations.
GUID: {82066163-7BD0-43EF-8A6F-5B8905C9A64C}
Definition at line 28 of file logitech.h.
Referenced by get_logitech_property(), set_logitech_property(), and supports_logitech_properties().