2号鼠标被拔出后,它所使用的内存将被释放,此时1号鼠标动作虽然使用api获取的属性值(x/y坐标、按键值、滚轮值)没有改变,当实际原因是1号鼠标的属性值被更新到2号鼠标原先属性值所在的内存中去了。1号鼠标仍在操作原本已经被释放的2号鼠标的内存。
/* Get some memory for both the HID class instance of this client
and for the callback. */
mouse_instance = (UX_HOST_CLASS_HID_MOUSE *) _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_HOST_CLASS_HID_MOUSE));
if(mouse_instance == UX_NULL)
return(UX_MEMORY_INSUFFICIENT);
/* Attach the mouse instance to the client instance. */
hid_client -> ux_host_class_hid_client_local_instance = (VOID *) mouse_instance;
LOG_D("f{%s} hid_client = 0x%X mouse_instance = 0x%X", __FUNCTION__, hid_client, mouse_instance);
/* Save the HID instance in the client instance. */
mouse_instance -> ux_host_class_hid_mouse_hid = hid;
/* Get the HID client pointer. */
hid_client = hid -> ux_host_class_hid_client;
/* If trace is enabled, insert this event into the trace buffer. */
UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HID_MOUSE_DEACTIVATE, hid, hid_client -> ux_host_class_hid_client_local_instance, 0, 0, UX_TRACE_HOST_CLASS_EVENTS, 0, 0)
/* Now free the instance memory. */
LOG_D("f{%s} free hid_client = 0x%X instance 0x%X", __FUNCTION__, hid_client, hid_client->ux_host_class_hid_client_local_instance);
_ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance);
VOID _ux_host_class_hid_mouse_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK* callback)
{
UX_HOST_CLASS_HID_CLIENT *hid_client;
UX_HOST_CLASS_HID_MOUSE *mouse_instance;
/* Get the HID client instance that issued the callback. */
hid_client = callback -> ux_host_class_hid_report_callback_client;
/* Get the mouse local instance */
mouse_instance = (UX_HOST_CLASS_HID_MOUSE *) hid_client -> ux_host_class_hid_client_local_instance;
LOG_D("f{%s}, mouse_instance 0x%X usage 0x%X value 0x%X", __FUNCTION__, mouse_instance, callback->ux_host_class_hid_report_callback_usage,
callback->ux_host_class_hid_report_callback_value);
/* Analyze the usage we have received. */
switch (callback -> ux_host_class_hid_report_callback_usage)
{
/* X/Y Axis movement. */
case UX_HOST_CLASS_HID_MOUSE_AXIS_X :
/* Add the deplacement to the position. */
mouse_instance -> ux_host_class_hid_mouse_x_position += (SCHAR) callback -> ux_host_class_hid_report_callback_value;
break;
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
W/app_usbx_host: hid_client addr 0x211633C8
I/app_usbx_host: keyboard = 0x21169C70
I/app_usbx_host: Check the HID_client if this is a HID keyboard device.
D/app_usbx_host: HID_Keyboard_Device
D/app_usbx_host: PID: 0xc53f
D/app_usbx_host: VID: 0x46d
D/app_usbx_host: USB HID Host Keyboard App...
D/app_usbx_host: keyboard is ready...
D/NO_TAG: f{_ux_host_class_hid_client_search} item_global_usage_page = 0x1 item_local_usage = 0x2
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x0
I/NO_TAG: f{_ux_host_class_hid_client_search} activate ux_host_class_hid_client_mouse
D/NO_TAG: f{_ux_host_class_hid_mouse_activate} hid_client = 0x21163370 mouse_instance = 0x2116D830
I/NO_TAG: f{_ux_host_class_hid_mouse_activate} line 168 mouse_callback = 0x802A3DD8
W/app_usbx_host: ux_host_event_callback event 0x3 Current_class = 0x2115DFE0 Current_instance = 0x21163370
W/app_usbx_host: HID Client Plugged
W/app_usbx_host: ux_host_event_callback event 0x1 Current_class = 0x2115DFE0 Current_instance = 0x2116B540
W/app_usbx_host: hid_client addr 0x21163370
I/app_usbx_host: mouse = 0x2116D830
I/app_usbx_host: Check the HID_client if this is a HID mouse device.
D/app_usbx_host: HID_Mouse_Device
D/app_usbx_host: PID: 0xc53f
D/app_usbx_host: VID: 0x46d
D/app_usbx_host: USB HID Host Mouse App...
D/app_usbx_host: Mouse is ready...
D/NO_TAG: f{_ux_host_class_hid_client_search} item_global_usage_page = 0xFF00 item_local_usage = 0x1
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x57
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x57
E/app_usbx_host: ux_host_error_callback level 2, context 7, error_code 0x7B
W/app_usbx_host: ux_host_event_callback event 0x1 Current_class = 0x2115DFE0 Current_instance = 0x2116E540
W/app_usbx_host: hid_client addr 0x0
W/NO_TAG: _ux_host_stack_new_device_create [288]: status = 0
W/NO_TAG: _ux_host_stack_new_device_create 295 status = 0
W/app_usbx_host: ux_host_event_callback event 0x81 Current_class = 0x0 Current_instance = 0x2115E150
I/NO_TAG: port_index 2 ux_hcd_root_hub_signal 0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10030 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0xC0238 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10030 value 0x9
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x2116D830 usage 0xC0238 value 0x0
D/mouse: Pos_x = 11 Pos_y= 0
I/NO_TAG: port_index 0 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 1 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 2 ux_hcd_root_hub_signal 2
I/NO_TAG: port2: ohci_register_port_status = 0x101
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 119
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 128
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 133
I/NO_TAG: ohci_port_enable 2
I/NO_TAG: port2: ohci_register_port_status = 0x103
D/NO_TAG: f{_ux_host_stack_new_device_create} new device = 0x2115E408
W/NO_TAG: Get the configuration descriptor
D/NO_TAG: vid = 0x46D pid = 0xC084 class = 0x0 subclass = 0x0
W/NO_TAG: _ux_host_stack_new_device_create [282]: status = 57
D/NO_TAG: f{_ux_host_class_hid_client_search} item_global_usage_page = 0x1 item_local_usage = 0x2
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x0
I/NO_TAG: f{_ux_host_class_hid_client_search} activate ux_host_class_hid_client_mouse
D/NO_TAG: f{_ux_host_class_hid_mouse_activate} hid_client = 0x21163370 mouse_instance = 0x21174140
I/NO_TAG: f{_ux_host_class_hid_mouse_activate} line 168 mouse_callback = 0x802A3DD8
W/app_usbx_host: ux_host_event_callback event 0x3 Current_class = 0x2115DFE0 Current_instance = 0x21163370
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
W/app_usbx_host: HID Client Plugged
W/app_usbx_host: ux_host_event_callback event 0x1 Current_class = 0x2115DFE0 Current_instance = 0x21171E20
W/app_usbx_host: hid_client addr 0x21163370
I/app_usbx_host: mouse = 0x21174140
I/app_usbx_host: Check the HID_client if this is a HID mouse device.
D/app_usbx_host: HID_Mouse_Device
D/app_usbx_host: PID: 0xc084
D/app_usbx_host: VID: 0x46d
D/app_usbx_host: USB HID Host Mouse App...
D/app_usbx_host: Mouse is ready...
D/mouse: Pos_x = 0 Pos_y= 0
D/NO_TAG: f{_ux_host_class_hid_client_search} item_global_usage_page = 0x1 item_local_usage = 0x6
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x57
I/NO_TAG: f{_ux_host_class_hid_client_search} status = 0x0
I/NO_TAG: f{_ux_host_class_hid_client_search} activate ux_host_class_hid_client_keyboard
I/NO_TAG: f{_ux_host_class_hid_keyboard_activate} hid = 0x211747B0
I/NO_TAG: f{_ux_host_class_hid_keyboard_activate} activate ux_host_class_hid_client_keyboard
I/NO_TAG: f{_ux_host_class_hid_keyboard_activate} hid_client = 0x211633C8 keyboard_instance = 0x21177CB0
W/app_usbx_host: ux_host_event_callback event 0x1 Current_class = 0x2115DFE0 Current_instance = 0x211747B0
W/app_usbx_host: hid_client addr 0x0
W/NO_TAG: _ux_host_stack_new_device_create [288]: status = 0
W/NO_TAG: _ux_host_stack_new_device_create 295 status = 0
W/app_usbx_host: ux_host_event_callback event 0x81 Current_class = 0x0 Current_instance = 0x2115E408
I/NO_TAG: port_index 0 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 1 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 2 ux_hcd_root_hub_signal 1
I/NO_TAG: port2: ohci_register_port_status = 0x103
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 119
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 128
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
D/mouse: Right Button Pressed
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
I/NO_TAG: port_index 0 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 1 ux_hcd_root_hub_signal 0
I/NO_TAG: port_index 2 ux_hcd_root_hub_signal 1
I/NO_TAG: port2: ohci_register_port_status = 0x100
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 119
I/NO_TAG: f{_ux_host_stack_rh_change_process} line 172
D/NO_TAG: f{_ux_host_stack_device_remove} device = 0x2115E408
D/NO_TAG: f{_ux_host_stack_device_remove} class_instance = 0x21171E20
D/NO_TAG: f{_ux_host_class_hid_mouse_deactivate} free hid_client = 0x21163370 instance 0x21174140
W/app_usbx_host: ux_host_event_callback event 0x4 Current_class = 0x2115DFE0 Current_instance = 0x21163370
W/app_usbx_host: HID Client Unplugged
W/app_usbx_host: ux_host_event_callback event 0x2 Current_class = 0x2115DFE0 Current_instance = 0x21171E20
I/app_usbx_host: mouse = 0x2116D830
I/app_usbx_host: Check the HID_client if this is a HID mouse device.
W/app_usbx_host: USB Device Removal
D/NO_TAG: f{_ux_host_stack_device_remove} class_instance = 0x211747B0
D/mouse: Pos_x = 11 Pos_y= 0
W/app_usbx_host: ux_host_event_callback event 0x2 Current_class = 0x2115DFE0 Current_instance = 0x211747B0
W/app_usbx_host: ux_host_event_callback event 0x82 Current_class = 0x0 Current_instance = 0x2115E408
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90001 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90002 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90003 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90004 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90005 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90006 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90007 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90008 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90009 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000A value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000B value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000C value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000D value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000E value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x9000F value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x90010 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10030 value 0x1
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10031 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0x10038 value 0x0
D/NO_TAG: f{_ux_host_class_hid_mouse_callback}, mouse_instance 0x21174140 usage 0xC0238 value 0x0