Hello,
recently I started working with few components that I never worked before. C8051F340 uC and BlueGiga WT12-A bluetooth modul. There is a host (PC) on one side and remote device (4 buttons and touch-pad) on the other. The connection between them is bluetooth (enabled by BlueGiga module). I need to develop and implement HID protocol, and I have my doubts here. Namely, there are a lot of tutorials on HID subject, but since I never worked with it before, I have this question to ask you:
This is HID descriptor for example, mouse (remote device):
USAGE_PAGE (Button)
USAGE_MINIMUM (Button 1)
USAGE_MAXIMUM (Button 3)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (1)
REPORT_COUNT (3)
REPORT_SIZE (1)
INPUT (Data,Var,Abs)
REPORT_COUNT (1)
REPORT_SIZE (5)
INPUT (Cnst,Var,Abs)
USAGE_PAGE (Generic Desktop)
USAGE (X)
USAGE (Y)
LOGICAL_MINIMUM (-127)
LOGICAL_MAXIMUM (127)
REPORT_SIZE (8)
REPORT_COUNT (2)
INPUT (Data,Var,Rel)
I need to implement this descriptor in C (for example) but where? On the side of host, or on the side of remote device? Can someone explain me how this exactly works? Thanks!
Vojke