WARNING: library USBHost claims to run on sam architecture(s) and may be incompatible with your current board which runs on samd architecture(s).
In file included from C:\Users\User\Documents\libraries\USBHost\src/Usb.h:27:0,
from C:\Users\User\Documents\libraries\USBHost\src/hidboot.h:23,
from C:\Users\User\Documents\libraries\USBHost\src/KeyboardController.h:22,
from C:\Users\User\Documents\firmware\arduino_testers\BarcodeScannerController\BarcodeScannerController.ino:3:
C:\Users\User\Documents\firmware\libraries\USBHost\src/address.h:102:8: error: using typedef-name 'UsbDevice' after 'struct'
struct UsbDevice
^~~~~~~~~
In file included from C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:270:0,
from C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69,
from C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd.h:105,
from C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/sam.h:540,
from C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.9\cores\arduino/Arduino.h:48,
from sketch\BarcodeScannerController.ino.cpp:1:
C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/component/usb.h:1745:3: note: 'UsbDevice' has a previous declaration here
} UsbDevice;
^~~~~~~~~
In file included from C:\Users\User\Documents\firmware\libraries\USBHost\src/KeyboardController.h:22:0,
from C:\Users\User\Documents\firmware\arduino_testers\BarcodeScannerController\BarcodeScannerController.ino:3:
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h: In member function 'virtual uint32_t HIDBoot<BOOT_PROTOCOL>::Init(uint32_t, uint32_t, uint32_t)':
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:280:10: error: 'struct UsbDevice' has no member named 'epinfo'
if (!p->epinfo)
^~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:287:17: error: 'struct UsbDevice' has no member named 'epinfo'
oldep_ptr = p->epinfo;
^~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:290:5: error: 'struct UsbDevice' has no member named 'epinfo'
p->epinfo = epInfo;
^~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:292:5: error: 'struct UsbDevice' has no member named 'lowspeed'
p->lowspeed = lowspeed;
^~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:303:6: error: 'struct UsbDevice' has no member named 'epinfo'
p->epinfo = oldep_ptr;
^~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:309:5: error: 'struct UsbDevice' has no member named 'epinfo'
p->epinfo = oldep_ptr;
^~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:325:6: error: 'struct UsbDevice' has no member named 'lowspeed'
p->lowspeed = false;
^~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:334:5: error: 'struct UsbDevice' has no member named 'lowspeed'
p->lowspeed = false;
^~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:341:5: error: 'struct UsbDevice' has no member named 'lowspeed'
p->lowspeed = lowspeed;
^~~~~~~~
In file included from C:\Users\User\Documents\firmware\libraries\USBHost\src/KeyboardController.h:22:0,
from C:\Users\User\Documents\firmware\FW\arduino_testers\BarcodeScannerController\BarcodeScannerController.ino:3:
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h: In member function 'virtual void HIDBoot<BOOT_PROTOCOL>::EndpointXtract(uint32_t, uint32_t, uint32_t, uint32_t, const USB_ENDPOINT_DESCRIPTOR*)':
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:62: error: 'UOTGHS_HSTPIPCFG_PTYPE_INTRPT' was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:62: note: suggested alternative: 'HSTPIPCFG_PTYPE_INTRPT'
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HSTPIPCFG_PTYPE_INTRPT
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:93: error: 'UOTGHS_HSTPIPCFG_PTOKEN_IN' was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:93: note: suggested alternative: 'HSTPIPCFG_PTOKEN_IN'
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~
HSTPIPCFG_PTOKEN_IN
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:151: error: 'UOTGHS_HSTPIPCFG_PBK_1_BANK' was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:474:151: note: suggested alternative: 'HSTPIPCFG_PBK_1_BANK'
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
HSTPIPCFG_PBK_1_BANK
In file included from C:\Users\User\Documents\firmware\libraries\USBHost\src/Usb.h:27:0,
from C:\Users\User\Documents\firmware\libraries\USBHost\src/hidboot.h:23,
from C:\Users\User\Documents\firmware\libraries\USBHost\src/KeyboardController.h:22,
from C:\Users\User\Documents\arduino_testers\BarcodeScannerController\BarcodeScannerController.ino:3:
C:\Users\User\Documents\firmware\libraries\USBHost\src/address.h: In instantiation of 'void AddressPoolImpl<MAX_DEVICES_ALLOWED>::ForEachUsbDevice(UsbDeviceHandleFunc) [with long unsigned int MAX_DEVICES_ALLOWED = 16; UsbDeviceHandleFunc = void (*)(UsbDevice*)]':
C:\Users\User\Documents\firmware\libraries\USBHost\src/Usb.h:193:35: required from here
C:\Users\User\Documents\firmware\libraries\USBHost\src/address.h:290:19: error: 'struct UsbDevice' has no member named 'address'
if (thePool[i].address)
~~~~~~~~~~~^~~~~~~
exit status 1
Error compiling for board Arduino MKR1000.