Numworks Epsilon  1.4.1
Graphing Calculator Operating System
platform_device_capability_descriptor.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_USB_STACK_PLATFORM_DEVICE_CAPABLITY_DESCRIPTOR_H
2 #define ION_DEVICE_USB_STACK_PLATFORM_DEVICE_CAPABLITY_DESCRIPTOR_H
3 
5 
6 namespace Ion {
7 namespace USB {
8 namespace Device {
9 
11 public:
12  constexpr PlatformDeviceCapabilityDescriptor(const uint8_t platformCapabilityUUID[]) :
14  m_bReserved(0),
15  m_platformCapabilityUUID{
16  platformCapabilityUUID[0],
17  platformCapabilityUUID[1],
18  platformCapabilityUUID[2],
19  platformCapabilityUUID[3],
20  platformCapabilityUUID[4],
21  platformCapabilityUUID[5],
22  platformCapabilityUUID[6],
23  platformCapabilityUUID[7],
24  platformCapabilityUUID[8],
25  platformCapabilityUUID[9],
26  platformCapabilityUUID[10],
27  platformCapabilityUUID[11],
28  platformCapabilityUUID[12],
29  platformCapabilityUUID[13],
30  platformCapabilityUUID[14],
31  platformCapabilityUUID[15]}
32  {
33  }
34 protected:
35  void push(Channel * c) const override;
36  virtual uint8_t bLength() const override;
37 private:
38  constexpr static uint8_t k_platformCapabilityUUIDSize = 16;
39  uint8_t m_bReserved;
40  uint8_t m_platformCapabilityUUID[k_platformCapabilityUUIDSize];
41 };
42 
43 }
44 }
45 }
46 
47 #endif
unsigned char uint8_t
Definition: stdint.h:4
constexpr PlatformDeviceCapabilityDescriptor(const uint8_t platformCapabilityUUID[])
c(generic_all_nodes)
Definition: app.cpp:5
Definition: backlight.h:6