Skip to content

Commit

Permalink
power down, sleep, wake up
Browse files Browse the repository at this point in the history
  • Loading branch information
jfedor2 committed Apr 19, 2024
1 parent 4aa4548 commit c22ef7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions firmware/src/our_descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,20 @@ const uint8_t our_report_descriptor_kb_mouse[] = {
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection

0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x80, // Usage (Sys Control)
0xA1, 0x01, // Collection (Application)
0x85, 0x04, // Report ID (4)
0x75, 0x01, // Report Size (1)
0x95, 0x03, // Report Count (3)
0x09, 0x81, // Usage (Sys Power Down)
0x09, 0x82, // Usage (Sys Sleep)
0x09, 0x83, // Usage (Sys Wake Up)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x05, // Report Count (5)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
};

const uint8_t our_report_descriptor_absolute[] = {
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/our_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define REPORT_ID_CONFIG 100
#define REPORT_ID_MONITOR 101

#define MAX_INPUT_REPORT_ID 3
#define MAX_INPUT_REPORT_ID 4

#define NOUR_DESCRIPTORS 5

Expand Down

0 comments on commit c22ef7f

Please sign in to comment.