Numworks Epsilon  1.4.1
Graphing Calculator Operating System
dfu_functional_descriptor.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_USB_STACK_DFU_FUNCTIONAL_DESCRIPTOR_H
2 #define ION_DEVICE_USB_STACK_DFU_FUNCTIONAL_DESCRIPTOR_H
3 
4 #include "descriptor.h"
5 
6 namespace Ion {
7 namespace USB {
8 namespace Device {
9 
11 public:
13  uint8_t bmAttributes,
14  uint16_t wDetachTimeOut,
15  uint16_t wTransferSize,
16  uint16_t bcdDFUVersion) :
17  Descriptor(0x21),
18  m_bmAttributes(bmAttributes),
19  m_wDetachTimeOut(wDetachTimeOut),
20  m_wTransferSize(wTransferSize),
21  m_bcdDFUVersion(bcdDFUVersion)
22  {
23  }
24 protected:
25  void push(Channel * c) const override;
26  virtual uint8_t bLength() const override;
27 private:
28  uint8_t m_bmAttributes;
29  uint16_t m_wDetachTimeOut;
30  uint16_t m_wTransferSize;
31  uint16_t m_bcdDFUVersion;
32 };
33 
34 }
35 }
36 }
37 
38 #endif
constexpr DFUFunctionalDescriptor(uint8_t bmAttributes, uint16_t wDetachTimeOut, uint16_t wTransferSize, uint16_t bcdDFUVersion)
unsigned short uint16_t
Definition: stdint.h:5
unsigned char uint8_t
Definition: stdint.h:4
c(generic_all_nodes)
Definition: app.cpp:5
Definition: backlight.h:6