1#include "device_class.hpp"
3using namespace LibXR::USB;
7 if (interface_string_base_index_ == 0u)
16 uint8_t index = interface_string_base_index_;
17 for (
size_t i = 0; i < local_interface_index; ++i)
27void DeviceClass::SetInterfaceStringBaseIndex(uint8_t string_index)
29 interface_string_base_index_ = string_index;
uint8_t GetInterfaceStringIndex(size_t local_interface_index) const
返回已分配的接口字符串索引 Return the assigned USB string index for a local interface.
virtual const char * GetInterfaceString(size_t local_interface_index) const
返回本类暴露的第 N 个接口字符串 Return the string for the Nth local interface exposed by this class.