USB Device Human Interface Device (HID) mouse interface.
Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
#include "conf_usb.h"
#include "usb_protocol.h"
#include "usb_protocol_hid.h"
#include "udc_desc.h"
#include "udi.h"
Data Structures | |
struct | udi_hid_mouse_desc_t |
Interface descriptor structure for HID mouse. More... | |
struct | udi_hid_mouse_report_desc_t |
Report descriptor for HID mouse. More... | |
Macros | |
#define | UDI_HID_MOUSE_DESC |
Content of HID mouse interface descriptor for all speed. More... | |
#define | UDI_HID_MOUSE_EP_SIZE 8 |
HID mouse endpoints size. More... | |
#define | UDI_HID_MOUSE_STRING_ID 0 |
By default no string associated to this interface. More... | |
Functions | |
Interfaces for mouse events | |
bool | udi_hid_mouse_moveScroll (int8_t pos) |
Move the scroll wheel. More... | |
bool | udi_hid_mouse_moveY (int8_t pos_y) |
Move the mouse pointer on Y axe. More... | |
bool | udi_hid_mouse_moveX (int8_t pos_x) |
Move the mouse pointer on X axe. More... | |
Variables | |
UDC_DESC_STORAGE udi_api_t | udi_api_hid_mouse |
Global structure which contains standard UDI API for UDC. More... | |
Interfaces for buttons events | |
#define | HID_MOUSE_BTN_DOWN true |
Value to signal a button down (pressed) More... | |
#define | HID_MOUSE_BTN_UP false |
Value to signal a button up (released) More... | |
bool | udi_hid_mouse_btnmiddle (bool b_state) |
Changes middle button state. More... | |
bool | udi_hid_mouse_btnright (bool b_state) |
Changes right button state. More... | |
bool | udi_hid_mouse_btnleft (bool b_state) |
Changes left button state. More... | |