Class internal implementation.
#define UHI_HID_MOUSE_BTN 0 |
#define UHI_HID_MOUSE_MOV_SCROLL 3 |
#define UHI_HID_MOUSE_MOV_X 1 |
#define UHI_HID_MOUSE_MOV_Y 2 |
References uhc_device_t::address, Assert, usb_iface_desc_t::bDescriptorType, usb_iface_desc_t::bInterfaceClass, usb_iface_desc_t::bInterfaceProtocol, usb_iface_desc_t::bLength, uhc_device_t::conf_desc, uhi_hid_mouse_dev_t::dev, uhi_hid_mouse_dev_t::ep_in, HID_CLASS, HID_PROTOCOL_MOUSE, le16_to_cpu, NULL, uhi_hid_mouse_dev_t::report, uhi_hid_mouse_dev_t::report_size, uhc_device_t::speed, UHC_ENUM_HARDWARE_LIMIT, UHC_ENUM_MEMORY_LIMIT, UHC_ENUM_SOFTWARE_LIMIT, UHC_ENUM_SUCCESS, UHC_ENUM_UNSUPPORTED, uhd_ep_alloc(), USB_DT_ENDPOINT, USB_DT_INTERFACE, USB_EP_DIR_IN, and usb_conf_desc_t::wTotalLength.
Decodes the HID mouse report received.
- Parameters
-
add | USB address used by the transfer |
status | Transfer status |
nb_transfered | Number of data transfered |
References uhi_hid_mouse_dev_t::report, uhi_hid_mouse_dev_t::report_btn_prev, UHD_TRANS_NOERROR, UHD_TRANS_NOTRESPONDING, UHD_TRANS_TIMEOUT, UHI_HID_MOUSE_BTN, UHI_HID_MOUSE_EVENT_BTN_LEFT, UHI_HID_MOUSE_EVENT_BTN_MIDDLE, UHI_HID_MOUSE_EVENT_BTN_RIGHT, UHI_HID_MOUSE_EVENT_MOUVE, UHI_HID_MOUSE_MOV_SCROLL, UHI_HID_MOUSE_MOV_X, UHI_HID_MOUSE_MOV_Y, uhi_hid_mouse_start_trans_report(), and UNUSED().
Referenced by uhi_hid_mouse_start_trans_report().
static void uhi_hid_mouse_start_trans_report |
( |
usb_add_t |
add | ) |
|
|
static |
Initial value:= {
}
#define NULL
Definition: lwip-1.4.1/src/include/lwip/def.h:47