sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

consumer.h (1606B)


      1#pragma once
      2
      3#include <stdint.h>
      4
      5
      6/* Consumer Page (0x0C)
      7 *
      8 * See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=75
      9 */
     10enum hid_consumer {
     11	/* 15.5 Display Controls */
     12	SNAPSHOT			   = 0x065,
     13	/* https://www.usb.org/sites/default/files/hutrr41_0.pdf */
     14	BRIGHTNESS_UP		  = 0x06F,
     15	BRIGHTNESS_DOWN		= 0x070,
     16
     17	/* 15.7 Transport Controls */
     18	TRANSPORT_RECORD	   = 0x0B2,
     19	TRANSPORT_FAST_FORWARD = 0x0B3,
     20	TRANSPORT_REWIND	   = 0x0B4,
     21	TRANSPORT_NEXT_TRACK   = 0x0B5,
     22	TRANSPORT_PREV_TRACK   = 0x0B6,
     23	TRANSPORT_STOP		 = 0x0B7,
     24	TRANSPORT_EJECT		= 0x0B8,
     25	TRANSPORT_RANDOM_PLAY  = 0x0B9,
     26	TRANSPORT_STOP_EJECT   = 0x0CC,
     27	TRANSPORT_PLAY_PAUSE   = 0x0CD,
     28
     29	/* 15.9.1 Audio Controls - Volume */
     30	AUDIO_MUTE			 = 0x0E2,
     31	AUDIO_VOL_UP		   = 0x0E9,
     32	AUDIO_VOL_DOWN		 = 0x0EA,
     33
     34	/* 15.15 Application Launch Buttons */
     35	AL_CC_CONFIG		   = 0x183,
     36	AL_EMAIL			   = 0x18A,
     37	AL_CALCULATOR		  = 0x192,
     38	AL_LOCAL_BROWSER	   = 0x194,
     39	AL_LOCK				= 0x19E,
     40	AL_CONTROL_PANEL	   = 0x19F,
     41	AL_ASSISTANT		   = 0x1CB,
     42	AL_KEYBOARD_LAYOUT	 = 0x1AE,
     43
     44	/* 15.16 Generic GUI Application Controls */
     45	AC_NEW				 = 0x201,
     46	AC_OPEN				= 0x202,
     47	AC_CLOSE			   = 0x203,
     48	AC_EXIT				= 0x204,
     49	AC_MAXIMIZE			= 0x205,
     50	AC_MINIMIZE			= 0x206,
     51	AC_SAVE				= 0x207,
     52	AC_PRINT			   = 0x208,
     53	AC_PROPERTIES		  = 0x209,
     54	AC_UNDO				= 0x21A,
     55	AC_COPY				= 0x21B,
     56	AC_CUT				 = 0x21C,
     57	AC_PASTE			   = 0x21D,
     58	AC_SELECT_ALL		  = 0x21E,
     59	AC_FIND				= 0x21F,
     60	AC_SEARCH			  = 0x221,
     61	AC_HOME				= 0x223,
     62	AC_BACK				= 0x224,
     63	AC_FORWARD			 = 0x225,
     64	AC_STOP				= 0x226,
     65	AC_REFRESH			 = 0x227,
     66	AC_BOOKMARKS		   = 0x22A
     67};
     68