Numworks Epsilon
1.4.1
Graphing Calculator Operating System
dfu_functional_descriptor.cpp
Go to the documentation of this file.
1
#include "
dfu_functional_descriptor.h
"
2
3
namespace
Ion
{
4
namespace
USB
{
5
namespace
Device {
6
7
void
DFUFunctionalDescriptor::push
(
Channel
*
c
)
const
{
8
Descriptor::push
(
c
);
9
c
->push(m_bmAttributes);
10
c
->push(m_wDetachTimeOut);
11
c
->push(m_wTransferSize);
12
c
->push(m_bcdDFUVersion);
13
}
14
15
uint8_t
DFUFunctionalDescriptor::bLength
()
const
{
16
return
Descriptor::bLength
() +
sizeof
(
uint8_t
) + 3*
sizeof
(
uint16_t
);
17
}
18
19
}
20
}
21
}
dfu_functional_descriptor.h
uint16_t
unsigned short uint16_t
Definition:
stdint.h:5
Ion::USB::Device::DFUFunctionalDescriptor::bLength
virtual uint8_t bLength() const override
Definition:
dfu_functional_descriptor.cpp:15
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
Ion::USB::Device::DFUFunctionalDescriptor::push
void push(Channel *c) const override
Definition:
dfu_functional_descriptor.cpp:7
c
c(generic_all_nodes)
Ion::USB::Device::Descriptor::push
void push(Channel *c) const override
Definition:
descriptor.cpp:8
Ion::USB::Device::Streamable::Channel
Definition:
streamable.h:15
USB
Definition:
app.cpp:5
Ion
Definition:
backlight.h:6
Ion::USB::Device::Descriptor::bLength
virtual uint8_t bLength() const
Definition:
descriptor.h:22
epsilon
ion
src
device
usb
stack
dfu_functional_descriptor.cpp
Generated by
1.8.14