Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Get notification on usb poll

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    4

    Get notification on usb poll

    Hi,

    I would like to use a Teensy LC to check the polling rate of the USB Host (i.e. PC).
    Therefore I would like to toggle a digital out pin everytime that the PC polls the teensy device.

    Is this possible?
    What API can I use for it?

  2. #2
    Junior Member
    Join Date
    Sep 2019
    Posts
    4
    I now found that 'usb_joystick_send' does wait until the next poll. But I haven't yet understood how the wait does work.

    For me it seems that it waits at this location in usb_tx:
    b->desc = BDT_DESC(packet->len, ((uint32_t)b & 8) ? DATA1 : DATA0);

    Is this correct? Does anybody know?

    And if so: what actually makes the code wait for the usb poll?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •