Skip to main content
meisamnabi
Visitor II
November 30, 2016
Question

custom usb device based on hid class

  • November 30, 2016
  • 1 reply
  • 580 views
Posted on December 01, 2016 at 00:59

Hi!

I'm developing a project on stm32f4discovery whit stm32f4407vgt6 MCU.

I want to develop a USB code based on hid class  that can receive my command and data from PC and send another command and data to PC but not in periodic time

I use hid class from STM-CUBE-MX and STM-cube-F4 but that is a mouse sample, I develop a custom hid too, but I get command and data from PC in periodic time by HAL_delay(); function in while(1) of main().

how can I detect receive of new buffer from PC without periodic read buffer?

for example can I use a interrupt on input endpoint when a data is receive from PC or not?

thanks!
    This topic has been closed for replies.

    1 reply

    sibufavica sibufavica
    Associate
    March 23, 2018
    Posted on March 23, 2018 at 16:10

    Hi,

    Were you able to solve this problem? Would be great if you can post your solution.