Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using "usb_interrupt_read" usb.h
Forum Updated to NodeBB v4.3 + New Features

Using "usb_interrupt_read" usb.h

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    avmg
    wrote on 4 Jul 2014, 12:18 last edited by
    #1

    Hello,

    I've an application that comunicates with a PIC32 uC. I already have it running, but now i want to change the Qt application to trigger an interrupt when the PC receives USB data.

    I'm using usb.h i think from libsub driver under linux 64 bit, the function i used since now to read is:

    @int usb_bulk_read(usb_dev_handle *dev, int ep, short int *bytes, int size, int timeout);@

    ...but in the same library there's another function for interrupt readings:

    @int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout);@

    I tried to use it but without success...Mi idea is to read the data only when the computer receives it, instead by polling.

    Any idea or suggestion?

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jul 2014, 13:03 last edited by
      #2

      Hi,

      This question is outside this forum scope, you should rather ask it the libusb channel/forum/mailing list

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        avmg
        wrote on 4 Jul 2014, 13:39 last edited by
        #3

        Ok,

        Thanks

        1 Reply Last reply
        0

        1/3

        4 Jul 2014, 12:18

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved