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
Ion::USB::Device::StringDescriptor
Definition:
string_descriptor.h:10
Ion::USB::Device::StringDescriptor::bLength
virtual uint8_t bLength() const override
Definition:
string_descriptor.cpp:18
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
c
c(generic_all_nodes)
descriptor.h
Ion::USB::Device::StringDescriptor::push
void push(Channel *c) const override
Definition:
string_descriptor.cpp:8
USB
Definition:
app.cpp:5
Ion::USB::Device::Descriptor
Definition:
descriptor.h:12
Ion
Definition:
backlight.h:6
Ion::USB::Device::StringDescriptor::StringDescriptor
constexpr StringDescriptor(const char *string)
Definition:
string_descriptor.h:12
epsilon
ion
src
device
usb
stack
string_descriptor.h
Generated by
1.8.14