@@ -1035,6 +1035,40 @@ const __u8 uclogic_rdesc_ugee_v2_frame_mouse_template_arr[] = {
10351035const size_t uclogic_rdesc_ugee_v2_frame_mouse_template_size =
10361036 sizeof (uclogic_rdesc_ugee_v2_frame_mouse_template_arr );
10371037
1038+ /* Fixed report descriptor template for UGEE v2 battery reports */
1039+ const __u8 uclogic_rdesc_ugee_v2_battery_template_arr [] = {
1040+ 0x05 , 0x01 , /* Usage Page (Desktop), */
1041+ 0x09 , 0x07 , /* Usage (Keypad), */
1042+ 0xA1 , 0x01 , /* Collection (Application), */
1043+ 0x85 , UCLOGIC_RDESC_UGEE_V2_BATTERY_ID ,
1044+ /* Report ID, */
1045+ 0x75 , 0x08 , /* Report Size (8), */
1046+ 0x95 , 0x02 , /* Report Count (2), */
1047+ 0x81 , 0x01 , /* Input (Constant), */
1048+ 0x05 , 0x84 , /* Usage Page (Power Device), */
1049+ 0x05 , 0x85 , /* Usage Page (Battery System), */
1050+ 0x09 , 0x65 , /* Usage Page (AbsoluteStateOfCharge), */
1051+ 0x75 , 0x08 , /* Report Size (8), */
1052+ 0x95 , 0x01 , /* Report Count (1), */
1053+ 0x15 , 0x00 , /* Logical Minimum (0), */
1054+ 0x26 , 0xff , 0x00 , /* Logical Maximum (255), */
1055+ 0x81 , 0x02 , /* Input (Variable), */
1056+ 0x75 , 0x01 , /* Report Size (1), */
1057+ 0x95 , 0x01 , /* Report Count (1), */
1058+ 0x15 , 0x00 , /* Logical Minimum (0), */
1059+ 0x25 , 0x01 , /* Logical Maximum (1), */
1060+ 0x09 , 0x44 , /* Usage Page (Charging), */
1061+ 0x81 , 0x02 , /* Input (Variable), */
1062+ 0x95 , 0x07 , /* Report Count (7), */
1063+ 0x81 , 0x01 , /* Input (Constant), */
1064+ 0x75 , 0x08 , /* Report Size (8), */
1065+ 0x95 , 0x07 , /* Report Count (7), */
1066+ 0x81 , 0x01 , /* Input (Constant), */
1067+ 0xC0 /* End Collection */
1068+ };
1069+ const size_t uclogic_rdesc_ugee_v2_battery_template_size =
1070+ sizeof (uclogic_rdesc_ugee_v2_battery_template_arr );
1071+
10381072/* Fixed report descriptor for Ugee EX07 frame */
10391073const __u8 uclogic_rdesc_ugee_ex07_frame_arr [] = {
10401074 0x05 , 0x01 , /* Usage Page (Desktop), */
0 commit comments