#include "services/device/public/cpp/usb/usb_utils.h"
#include <utility>
#include "services/device/public/mojom/usb_enumeration_options.mojom.h"
namespace device {
bool UsbDeviceFilterMatches(const mojom::UsbDeviceFilter& filter,
const mojom::UsbDeviceInfo& device_info) { … }
bool UsbDeviceFilterMatchesAny(
const std::vector<mojom::UsbDeviceFilterPtr>& filters,
const mojom::UsbDeviceInfo& device_info) { … }
std::vector<mojom::UsbIsochronousPacketPtr> BuildIsochronousPacketArray(
const std::vector<uint32_t>& packet_lengths,
mojom::UsbTransferStatus status) { … }
uint8_t ConvertEndpointAddressToNumber(uint8_t address) { … }
uint8_t ConvertEndpointNumberToAddress(uint8_t endpoint_number,
mojom::UsbTransferDirection direction) { … }
uint8_t ConvertEndpointNumberToAddress(
const mojom::UsbEndpointInfo& mojo_endpoint) { … }
uint16_t GetUsbVersion(const mojom::UsbDeviceInfo& device_info) { … }
uint16_t GetDeviceVersion(const mojom::UsbDeviceInfo& device_info) { … }
}