/**************************************************************************//* *//* Copyright (c) Microsoft Corporation. All rights reserved. *//* *//* This software is licensed under the Microsoft Software License *//* Terms for Microsoft Azure RTOS. Full text of the license can be *//* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA *//* and in the root directory of this software. *//* */.../**************************************************************************/.../**************************************************************************//**************************************************************************//** *//** USBX Component *//** *//** HID Mouse Client Class *//** */.../**************************************************************************//**************************************************************************/.../**************************************************************************//* *//* COMPONENT DEFINITION RELEASE *//* *//* ux_host_class_hid_mouse.h PORTABLE C *//* 6.1.10 *//* AUTHOR *//* *//* Chaoqiong Xiao, Microsoft Corporation *//* *//* DESCRIPTION *//* *//* This file contains all the header and extern functions used by the *//* USBX HID mouse class. *//* *//* RELEASE HISTORY *//* *//* DATE NAME DESCRIPTION *//* *//* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 *//* 09-30-2020 Chaoqiong Xiao Modified comment(s), *//* resulting in version 6.1 *//* 08-02-2021 Wen Wang Modified comment(s), *//* added extern "C" keyword *//* for compatibility with C++, *//* resulting in version 6.1.8 *//* 01-31-2022 Chaoqiong Xiao Modified comment(s), *//* added standalone support, *//* resulting in version 6.1.10 *//* */.../**************************************************************************/#ifndefUX_HOST_CLASS_HID_MOUSE_H#defineUX_HOST_CLASS_HID_MOUSE_H/* Determine if a C++ compiler is being used. If so, ensure that standard C is used to process the API information. *//* ... */#ifdef__cplusplus/* Yes, C++ compiler is present. Use standard C. */extern"C"{#endif/* Define HID Mouse Class constants. */#defineUX_HOST_CLASS_HID_MOUSE_BUFFER_LENGTH128#defineUX_HOST_CLASS_HID_MOUSE_USAGE_ARRAY_LENGTH64#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_10x00090001#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_20x00090002#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_30x00090003#defineUX_HOST_CLASS_HID_MOUSE_AXIS_X0x00010030#defineUX_HOST_CLASS_HID_MOUSE_AXIS_Y0x00010031#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_1_PRESSED0x01#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_2_PRESSED0x02#defineUX_HOST_CLASS_HID_MOUSE_BUTTON_3_PRESSED0x04#defineUX_HOST_CLASS_HID_MOUSE_WHEEL0x0001003811 defines/* Define HID Mouse Class structure. */typedefstructUX_HOST_CLASS_HID_MOUSE_STRUCT{ULONGux_host_class_hid_mouse_state;UX_HOST_CLASS_HID*ux_host_class_hid_mouse_hid;USHORTux_host_class_hid_mouse_id;SLONGux_host_class_hid_mouse_x_position;SLONGux_host_class_hid_mouse_y_position;ULONGux_host_class_hid_mouse_buttons;SLONGux_host_class_hid_mouse_wheel;#ifdefined(UX_HOST_STANDALONE)UINTux_host_class_hid_mouse_enum_state;UINTux_host_class_hid_mouse_status;/* ... */#endif...}UX_HOST_CLASS_HID_MOUSE;/* Define HID Mouse Class function prototypes. */UINT_ux_host_class_hid_mouse_activate(UX_HOST_CLASS_HID_CLIENT_COMMAND*command);VOID_ux_host_class_hid_mouse_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK*callback);UINT_ux_host_class_hid_mouse_deactivate(UX_HOST_CLASS_HID_CLIENT_COMMAND*command);UINT_ux_host_class_hid_mouse_entry(UX_HOST_CLASS_HID_CLIENT_COMMAND*command);UINT_ux_host_class_hid_mouse_buttons_get(UX_HOST_CLASS_HID_MOUSE*mouse_instance,ULONG*mouse_buttons);UINT_ux_host_class_hid_mouse_position_get(UX_HOST_CLASS_HID_MOUSE*mouse_instance,SLONG*mouse_x_position,SLONG*mouse_y_position);UINT_ux_host_class_hid_mouse_wheel_get(UX_HOST_CLASS_HID_MOUSE*mouse_instance,SLONG*mouse_wheel_movement);/* Define HID Mouse Class API prototypes. */#defineux_host_class_hid_mouse_entry_ux_host_class_hid_mouse_entry#defineux_host_class_hid_mouse_buttons_get_ux_host_class_hid_mouse_buttons_get#defineux_host_class_hid_mouse_position_get_ux_host_class_hid_mouse_position_get#defineux_host_class_hid_mouse_wheel_get_ux_host_class_hid_mouse_wheel_get/* Determine if a C++ compiler is being used. If so, complete the standard C conditional started above. *//* ... */#ifdef__cplusplus}extern "C" { ... }#endif/* ... */...#endif
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.