Numworks Epsilon  1.4.1
Graphing Calculator Operating System
device_capability_descriptor.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_USB_STACK_DEVICE_CAPABLITY_DESCRIPTOR_H
2 #define ION_DEVICE_USB_STACK_DEVICE_CAPABLITY_DESCRIPTOR_H
3 
4 #include "descriptor.h"
5 
6 namespace Ion {
7 namespace USB {
8 namespace Device {
9 
10 class BOSDescriptor;
11 
13  friend class BOSDescriptor;
14 public:
15  constexpr DeviceCapabilityDescriptor(uint8_t bDeviceCapabilityType) :
16  Descriptor(0x10),
17  m_bDeviceCapabilityType(bDeviceCapabilityType)
18  {
19  }
20 protected:
21  void push(Channel * c) const override;
22  virtual uint8_t bLength() const override;
23 private:
24  uint8_t m_bDeviceCapabilityType;
25 };
26 
27 }
28 }
29 }
30 
31 #endif
unsigned char uint8_t
Definition: stdint.h:4
c(generic_all_nodes)
Definition: app.cpp:5
constexpr DeviceCapabilityDescriptor(uint8_t bDeviceCapabilityType)
Definition: backlight.h:6