Numworks Epsilon  1.4.1
Graphing Calculator Operating System
request_recipient.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_USB_REQUEST_RECIPIENT_H
2 #define ION_DEVICE_USB_REQUEST_RECIPIENT_H
3 
4 #include "endpoint0.h"
5 #include "setup_packet.h"
6 
7 namespace Ion {
8 namespace USB {
9 namespace Device {
10 
12 public:
14  m_ep0(ep0)
15  {
16  }
17  bool processSetupRequest(SetupPacket * request, uint8_t * transferBuffer, uint16_t * transferBufferLength, uint16_t transferBufferMaxLength);
18  virtual void wholeDataReceivedCallback(SetupPacket * request, uint8_t * transferBuffer, uint16_t * transferBufferLength) {}
19  virtual void wholeDataSentCallback(SetupPacket * request, uint8_t * transferBuffer, uint16_t * transferBufferLength) {}
20 protected:
21  virtual bool processSetupInRequest(SetupPacket * request, uint8_t * transferBuffer, uint16_t * transferBufferLength, uint16_t transferBufferMaxLength) = 0;
23 };
24 
25 }
26 }
27 }
28 
29 #endif
bool processSetupRequest(SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength, uint16_t transferBufferMaxLength)
unsigned short uint16_t
Definition: stdint.h:5
unsigned char uint8_t
Definition: stdint.h:4
virtual void wholeDataReceivedCallback(SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength)
Definition: app.cpp:5
virtual void wholeDataSentCallback(SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength)
virtual bool processSetupInRequest(SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength, uint16_t transferBufferMaxLength)=0
Definition: backlight.h:6