I did some googling and found out that it is possible to transfer bigger reports than 64 bytes with somehow splitting data to multiple parts. I need to do this in one of my projects. Can this be done with teensy 3.0 ?
Could this be done for example by simply editing this found in usb_rawhid.c:
Or do i need to dig deeper to usb_dev.c ?
Could this be done for example by simply editing this found in usb_rawhid.c:
Code:
int usb_rawhid_recv(void *buffer, uint32_t timeout)
{
usb_packet_t *rx_packet;
uint32_t begin = millis();
while (1) {
if (!usb_configuration) return -1;
rx_packet = usb_rx(RAWHID_RX_ENDPOINT);
if (rx_packet) break;
if (millis() - begin > timeout || !timeout) return 0;
yield();
}
memcpy(buffer, rx_packet->buf, RAWHID_RX_SIZE);
usb_free(rx_packet);
return RAWHID_RX_SIZE;
}