This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How add a generic HID custom communication to PC on generic HID mouse example?

Hi All:

 As the topic...........

1.what is the relations between the HID descriptor  and  data IN/OUT buffer?

2.Is the USB generic HID receiver_Function and tansmit_Function in the HID mouse examples?  

Parents
  • Hi

    The NRF_DRV_USBD_TRANSFER_IN is a helper macro for declaring IN transfer description in "normal transfer mode". The tx_buff here is simple the buffer that is to be transferred using the USB peripheral.

    The generic USBD HID uses the APP_USBD_HID_MOUSE_REPORT_DSC_BUTTON descriptor for a HID generic class. I'm still not sure what you mean about "relation" between these though.

    Best regards,

    Simon

Reply
  • Hi

    The NRF_DRV_USBD_TRANSFER_IN is a helper macro for declaring IN transfer description in "normal transfer mode". The tx_buff here is simple the buffer that is to be transferred using the USB peripheral.

    The generic USBD HID uses the APP_USBD_HID_MOUSE_REPORT_DSC_BUTTON descriptor for a HID generic class. I'm still not sure what you mean about "relation" between these though.

    Best regards,

    Simon

Children
Related