2020-06-05 11:39 AM
Hello Everyone
I'm working with STM32F746Discovery Board.
I have a problem with "USB_Host (HID_Standalone)" project in STM32746G-Discovery folder in cubemx package.
my value of "mouse_info.x" doesn't update. all other members of _HID_MOUSE_Info structure updates but this one. mouse clicks and Y axis detect correctly.
typedef struct _HID_MOUSE_Info
{
uint8_t x;
uint8_t y;
uint8_t buttons[3];
}
HID_MOUSE_Info_TypeDef;
and
m_pinfo = USBH_HID_GetMouseInfo(phost);
can't work correctly.
It means I can't receive x axis motion.
How can I solve this problem? I have only one mouse (Logitech Wireless) and can't test with another mouse but this one works well with my PC.
Regards
Mohsen