Numworks Epsilon  1.4.1
Graphing Calculator Operating System
bos_descriptor.cpp
Go to the documentation of this file.
1 #include "bos_descriptor.h"
2 
3 namespace Ion {
4 namespace USB {
5 namespace Device {
6 
7 void BOSDescriptor::push(Channel * c) const {
9  c->push(m_wTotalLength);
10  c->push(m_bNumDeviceCaps);
11  for (uint8_t i = 0; i < m_bNumDeviceCaps; i++) {
12  m_deviceCapabilities[i].push(c);
13  }
14 }
15 
17  return Descriptor::bLength() + sizeof(uint16_t) + sizeof(uint8_t);
18 }
19 
20 }
21 }
22 }
unsigned short uint16_t
Definition: stdint.h:5
unsigned char uint8_t
Definition: stdint.h:4
virtual uint8_t bLength() const override
void push(Channel *c) const override
c(generic_all_nodes)
void push(Channel *c) const override
Definition: descriptor.cpp:8
Definition: app.cpp:5
Definition: backlight.h:6
virtual uint8_t bLength() const
Definition: descriptor.h:22