6 #include "UsbRxStream.hpp"
7 #include "UsbDevice.hpp"
8 #include "UsbMacros.hpp"
9 #include "RtosInclude.hpp"
11 UsbRxStream::UsbRxStream(uint8_t ep,
size_t size) :
13 UsbDevice::registerOutCallback(ep,
this);
16 UsbRxStream::~UsbRxStream() {
19 int UsbRxStream::read(
void* buffer,
int len,
Rtos::TICK timeout) {
20 return mBuffer.read(buffer, len, timeout);
23 int UsbRxStream::onDataOut(UsbDefs::PKT* pkt) {
25 USB_ASSERT(written == pkt->header.len);