From 4b68ca14ebdb66905c57dacb341bebc4d10d22ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 4 Apr 2018 15:09:09 +0200 Subject: [PATCH] [usb] Organize calculator.h. Change-Id: Ia53f0a79420d62281309cbc60d631b77b751c9ff --- ion/src/device/usb/calculator.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ion/src/device/usb/calculator.h b/ion/src/device/usb/calculator.h index 47fbb15a8..6420b7144 100644 --- a/ion/src/device/usb/calculator.h +++ b/ion/src/device/usb/calculator.h @@ -122,8 +122,12 @@ private: static constexpr uint8_t k_webUSBVendorCode = 1; static constexpr uint8_t k_webUSBLandingPageIndex = 1; static constexpr uint8_t k_microsoftOSVendorCode = 2; + + // WebUSB and MicrosoftOSDescriptor commands bool getURLCommand(uint8_t * transferBuffer, uint16_t * transferBufferLength, uint16_t transferBufferMaxLength); bool getExtendedCompatIDCommand(uint8_t * transferBuffer, uint16_t * transferBufferLength, uint16_t transferBufferMaxLength); + + // Descriptors DeviceDescriptor m_deviceDescriptor; DFUFunctionalDescriptor m_dfuFunctionalDescriptor; InterfaceDescriptor m_interfaceDescriptor; @@ -144,6 +148,7 @@ private: * method descriptor(uint8_t type, uint8_t index), so do not count descriptors * included in other descriptors or returned by other functions. */ + // Interface DFUInterface m_dfuInterface; };