We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd52f71 commit a6ab0f3Copy full SHA for a6ab0f3
libraries/USBHost/src/Usb.cpp
@@ -49,6 +49,10 @@ void USBHost::setUsbTaskState(uint32_t state) {
49
usb_task_state = state;
50
}
51
52
+uint32_t USBHost::getUsbErrorCode(void) {
53
+ return (usb_error);
54
+}
55
+
56
EpInfo* USBHost::getEpInfoEntry(uint32_t addr, uint32_t ep) {
57
UsbDeviceDefinition *p = addrPool.GetUsbDevicePtr(addr);
58
libraries/USBHost/src/UsbCore.h
@@ -222,7 +222,8 @@ class USBHost {
222
};
223
uint32_t getUsbTaskState(void);
224
void setUsbTaskState(uint32_t state);
225
-
+ uint32_t getUsbErrorCode(void);
226
227
EpInfo* getEpInfoEntry(uint32_t addr, uint32_t ep);
228
uint32_t setEpInfoEntry(uint32_t addr, uint32_t epcount, EpInfo* eprecord_ptr);
229
0 commit comments