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