📄 hid_keyboard.sdp
字号:
#
# HID Service Record for a keyboard
#
# Generates header file service_record.h using sdpgen.pl
#
ServiceClassIDList
{
uuid HID
}
ProtocolDescriptorList
{
{
uuid L2CAP
uint16 0x0011 #Control PSM
}
{
uuid HIDP
}
}
LanguageBaseAttributeIDList
{
uint16 0x656e #English 'en'
uint16 0x006a #UTF-8 encoding
uint16 0x0100 #PrimageLanguageBaseID
}
BluetoothProfileDescriptorList
{
{
uuid HID
uint16 0x0100 #version 1.00
}
}
AdditionalProtocolDescriptorList
{
{
{
uuid L2CAP
uint16 0x0013 #Interrupt PSM
}
{
uuid HIDP
}
}
}
ServiceName "CSR Keyboard"
ServiceDescription "Keyboard"
ProviderName "CSR HIDEngine"
HIDDeviceReleaseNumber 0x0100 #ver 1.00
HIDParserVersion 0x0100 #ver 1.00
HIDDeviceSubclass 0x40 #BootKeyboard
HIDCountryCode 0x33 #USA
HIDVirtualCable true
HIDReconnectInitiate true
HIDDescriptorList
{
{
uint8 0x22 #Report Descriptor
[
0x25 0x55 # String 85 bytes
0x05 0x01 # USAGE_PAGE (Generic Desktop)
0x09 0x06 # USAGE (Keyboard)
0xa1 0x01 # COLLECTION (Application)
# key press report
0x05 0x07 # USAGE_PAGE (Keyboard)
0x85 0x01 # REPORT_ID (1)
0x19 0xe0 # USAGE_MINIMUM (Keyboard LeftControl)
0x29 0xe7 # USAGE_MAXIMUM (Keyboard Right GUI)
0x15 0x00 # LOGICAL_MINIMUM (0)
0x25 0x01 # LOGICAL_MAXIMUM (1)
0x75 0x01 # REPORT_SIZE (1)
0x95 0x08 # REPORT_COUNT (8)
0x81 0x02 # INPUT (Data,Var,Abs)
0x95 0x01 # REPORT_COUNT (1)
0x75 0x08 # REPORT_SIZE (8)
0x81 0x01 # INPUT (Cnst,Var,Abs)
0x95 0x05 # REPORT_COUNT (5)
0x75 0x01 # REPORT_SIZE (1)
# output LED reports
0x05 0x08 # USAGE_PAGE (LEDs)
0x85 0x01 # REPORT_ID (1)
0x19 0x01 # USAGE_MINIMUM (Num Lock)
0x29 0x05 # USAGE_MAXIMUM (Kana)
0x91 0x02 # OUTPUT (Data,Var,Abs)
0x95 0x01 # REPORT_COUNT (1)
0x75 0x03 # REPORT_SIZE (3)
0x91 0x03 # OUTPUT (Cnst,Var,Abs)
0x95 0x06 # REPORT_COUNT (6)
0x75 0x08 # REPORT_SIZE (8)
0x15 0x00 # LOGICAL_MINIMUM (0)
0x25 0x65 # LOGICAL_MAXIMUM (101)
0x05 0x07 # USAGE_PAGE (Keyboard)
0x19 0x00 # USAGE_MINIMUM (Reserved (no event indicated))
0x29 0x65 # USAGE_MAXIMUM (Keyboard Application)
0x81 0x00 # INPUT (Data,Ary,Abs)
# PIN code entry
0x05 0x08 # USAGE_PAGE (Generic Device Control)
0x85 0xff # REPORT_ID (255)
0x95 0x01 # REPORT_COUNT (1)
0x75 0x02 # REPORT_SIZE (2)
0x09 0x24 # USAGE_MINIMUM (Security Code Digit Typed)
0x09 0x26 # USAGE_MAXIMUM (Security Code Cleared)
0x81 0x02 # INPUT (Data,Var,Abs)
0x75 0x06 # REPORT_SIZE (6)
0x81 0x01 # INPUT (Const)
0xc0 # END_COLLECTION
]
}
}
HIDLANGIDBaseList
{
{
uint16 0x0409 #english
uint16 0x0100 #bluetooth string offset
}
}
HIDSDPDisable false
HIDBatteryPower true
HIDRemoteWake true
HIDProfileVersion 0x0100
HIDSupervisionTimeout 0x1f40
HIDNormallyConnectable false
HIDBootDevice true
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -