24 #ifndef __USBDHIDMOUSE_H__ 25 #define __USBDHIDMOUSE_H__ 62 #define MOUSE_REPORT_SIZE 3 218 #define MOUSE_SUCCESS 0 227 #define MOUSE_ERR_TX_ERROR 2 236 #define MOUSE_ERR_NOT_CONFIGURED \ 245 #define MOUSE_REPORT_BUTTON_1 0x01 253 #define MOUSE_REPORT_BUTTON_2 0x02 261 #define MOUSE_REPORT_BUTTON_3 0x04 276 int8_t i8DeltaY, uint8_t ui8Buttons);
297 #endif // __USBDHIDMOUSE_H__ Definition: usbdhid.h:759
const uint8_t ui8PwrAttributes
Definition: usbdhidmouse.h:170
void * USBDHIDMouseSetCBData(void *pvMouseDevice, void *pvCBData)
Definition: usbdhidmouse.c:775
void USBDHIDMouseTerm(void *pvMouseDevice)
Definition: usbdhidmouse.c:725
const uint8_t *const * ppui8StringDescriptors
Definition: usbdhidmouse.h:196
const uint16_t ui16VID
The vendor ID that this device is to present in the device descriptor.
Definition: usbdhidmouse.h:153
const tUSBCallback pfnCallback
Definition: usbdhidmouse.h:176
uint8_t ui8USBConfigured
Definition: usbdhidmouse.h:111
tUSBDHIDDevice sHIDDevice
Definition: usbdhidmouse.h:138
Definition: usbdevice.h:135
Definition: usbdhid.h:800
Definition: usbdhidmouse.h:87
void * pvCBData
Definition: usbdhidmouse.h:182
uint32_t USBDHIDMouseStateChange(void *pvMouseDevice, int8_t i8DeltaX, int8_t i8DeltaY, uint8_t ui8Buttons)
Definition: usbdhidmouse.c:836
const uint32_t ui32NumStringDescriptors
Definition: usbdhidmouse.h:202
const uint16_t ui16MaxPowermA
The maximum power consumption of the device, expressed in milliamps.
Definition: usbdhidmouse.h:163
uint8_t ui8Protocol
Definition: usbdhidmouse.h:117
tHIDMouseInstance sPrivateData
Definition: usbdhidmouse.h:209
void * USBDHIDMouseInit(uint32_t ui32Index, tUSBDHIDMouseDevice *psMouseDevice)
Definition: usbdhidmouse.c:571
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
bool USBDHIDMouseRemoteWakeupRequest(void *pvMouseDevice)
Definition: usbdhidmouse.c:976
Definition: usbdhidmouse.h:77
volatile tMouseState iMouseState
Definition: usbdhidmouse.h:127
Definition: usbdhidmouse.h:92
tMouseState
Definition: usbdhidmouse.h:72
#define MOUSE_REPORT_SIZE
Definition: usbdhidmouse.h:62
void USBDHIDMousePowerStatusSet(void *pvMouseDevice, uint8_t ui8Power)
Definition: usbdhidmouse.c:932
Definition: usbdhidmouse.h:82
Definition: usbdhidmouse.h:105
Definition: usbdhidmouse.h:148
tHIDReportIdle sReportIdle
Definition: usbdhidmouse.h:133
const uint16_t ui16PID
The product ID that this device is to present in the device descriptor.
Definition: usbdhidmouse.h:158
void * USBDHIDMouseCompositeInit(uint32_t ui32Index, tUSBDHIDMouseDevice *psMouseDevice, tCompositeEntry *psCompEntry)
Definition: usbdhidmouse.c:642