?? psocconfig.xml
字號:
; Interface Descriptor (myUSB_D0_C1_I0)
;----------------------------------------------------------------------
DB 9 ; Interface Descriptor Length (9)
DB 4 ; bDescriptorType: INTERFACE
DB 0 ; bInterfaceNumber (zero based)
DB 0 ; bAlternateSetting
DB 1 ; bNumEndpoints
DB 3 ; bInterfaceClass
DB 1 ; bInterfaceSubClass
DB 2 ; bInterfaceProtocol
DB STR_HASH_2 ; iInterface
;----------------------------------------------------------------------
; HID Class Descriptor (myUSB_D0_C1_I0)
;----------------------------------------------------------------------
myUSB_D0_C1_I0_HID_DESCR_START:
DB 9 ; bLength--HID Class Descriptor Length (9)
DB 0x21 ; bDescriptorType: HID Class
DWL 0x0111 ; bcdHID
DB 33 ; bCountryCode
DB 1 ; bNumDescriptors
DB 34 ; bDescriptorType
DWL myUSB_HID_REPORT_2_DESCR_SIZE ; wDescriptorLength
;----------------------------------------------------------------------
; Endpoint Descriptor (myUSB_D0_C1_I0_E0)
;----------------------------------------------------------------------
DB 7 ; Endpoint Descriptor Length (7)
DB 5 ; bDescriptorType: ENDPOINT
DB (EP1 | USB_DIR_IN) ; bEndpointAddress
DB 3 ; bmAttributes
DWL 4 ; wMaxPacketSize
DB 10 ; bInterval
;----------------------------------------------------------------------
; Interface Descriptor (myUSB_D0_C1_I1)
;----------------------------------------------------------------------
DB 9 ; Interface Descriptor Length (9)
DB 4 ; bDescriptorType: INTERFACE
DB 1 ; bInterfaceNumber (zero based)
DB 0 ; bAlternateSetting
DB 1 ; bNumEndpoints
DB 3 ; bInterfaceClass
DB 1 ; bInterfaceSubClass
DB 1 ; bInterfaceProtocol
DB STR_HASH_3 ; iInterface
;----------------------------------------------------------------------
; HID Class Descriptor (myUSB_D0_C1_I1)
;----------------------------------------------------------------------
myUSB_D0_C1_I1_HID_DESCR_START:
DB 9 ; bLength--HID Class Descriptor Length (9)
DB 0x21 ; bDescriptorType: HID Class
DWL 0x0111 ; bcdHID
DB 33 ; bCountryCode
DB 1 ; bNumDescriptors
DB 34 ; bDescriptorType
DWL myUSB_HID_REPORT_2_DESCR_SIZE ; wDescriptorLength
;----------------------------------------------------------------------
; Endpoint Descriptor (myUSB_D0_C1_I1_E0)
;----------------------------------------------------------------------
DB 7 ; Endpoint Descriptor Length (7)
DB 5 ; bDescriptorType: ENDPOINT
DB (EP2 | USB_DIR_IN) ; bEndpointAddress
DB 3 ; bmAttributes
DWL 8 ; wMaxPacketSize
DB 10 ; bInterval
;----------------------------------------------------------------------
myUSB_D0_C1_DESCR_END:
myUSB_D0_C1_DESCR_SIZE: EQU (myUSB_D0_C1_DESCR_END - myUSB_D0_C1_DESCR_START)
.ENDLITERAL
;----------------------------------------------------------------------
; HID Class Report Descriptors
;
; This section contains the HID Class Report Descriptors generated
; by the USB User Module Descriptor Generator
;
;----------------------------------------------------------------------
; HID Report Descriptor (HID_RPT_1}
;----------------------------------------------------------------------
AREA UserModules (ROM,REL,CON)
.LITERAL
myUSB_HID_REPORT_1_DESCR_START: ;
DB 05H, 01H ; Usage Page
DB 09H, 02H ; Usage
DB A1H, 01H ; Collection
DB 09H, 01H ; Usage
DB A1H, 00H ; Collection
DB 05H, 09H ; Usage Page
DB 19H, 01H ; Usage Minimum
DB 29H, 03H ; Usage Maximum
DB 15H, 00H ; Logical Minimum
DB 25H, 01H ; Logical Maximum
DB 95H, 03H ; Report Count
DB 75H, 01H ; Report Size
DB 81H, 02H ; Input
DB 95H, 01H ; Report Count
DB 75H, 05H ; Report Size
DB 81H, 01H ; Input
DB 05H, 01H ; Usage Page
DB 09H, 30H ; Usage
DB 09H, 31H ; Usage
DB 15H, 80H ; Logical Minimum
DB 25H, 7FH ; Logical Maximum
DB 75H, 08H ; Report Size
DB 95H, 03H ; Report Count
DB 81H, 06H ; Input
DB C0H ; End Collection
DB C0H ; End Collection
myUSB_HID_REPORT_1_DESCR_END: ;
myUSB_HID_REPORT_1_DESCR_SIZE: EQU (myUSB_HID_REPORT_1_DESCR_END - myUSB_HID_REPORT_1_DESCR_START)
.ENDLITERAL
;----------------------------------------------------------------------
; End HID Report Descriptor (HID_RPT_1}
;----------------------------------------------------------------------
; HID Report Descriptor (HID_RPT_2}
;----------------------------------------------------------------------
AREA UserModules (ROM,REL,CON)
.LITERAL
myUSB_HID_REPORT_2_DESCR_START: ;
DB 05H, 01H ; Usage Page
DB 09H, 06H ; Usage
DB A1H, 01H ; Collection
DB 05H, 07H ; Usage Page
DB 19H, E0H ; Usage Minimum
DB 29H, E7H ; Usage Maximum
DB 15H, 00H ; Logical Minimum
DB 25H, 01H ; Logical Maximum
DB 75H, 01H ; Report Size
DB 95H, 08H ; Report Count
DB 81H, 02H ; Input
DB 95H, 01H ; Report Count
DB 75H, 08H ; Report Size
DB 81H, 01H ; Input
DB 95H, 05H ; Report Count
DB 75H, 01H ; Report Size
DB 05H, 08H ; Usage Page
DB 19H, 01H ; Usage Minimum
DB 29H, 05H ; Usage Maximum
DB 91H, 02H ; Output
DB 95H, 01H ; Report Count
DB 75H, 03H ; Report Size
DB 91H, 01H ; Output
DB 95H, 06H ; Report Count
DB 75H, 08H ; Report Size
DB 15H, 00H ; Logical Minimum
DB 25H, 65H ; Logical Maximum
DB 05H, 07H ; Usage Page
DB 19H, 00H ; Usage Minimum
DB 29H, 65H ; Usage Maximum
DB 81H, 00H ; Input
DB C0H ; End Collection
myUSB_HID_REPORT_2_DESCR_END: ;
myUSB_HID_REPORT_2_DESCR_SIZE: EQU (myUSB_HID_REPORT_2_DESCR_END - myUSB_HID_REPORT_2_DESCR_START)
.ENDLITERAL
;----------------------------------------------------------------------
; End HID Report Descriptor (HID_RPT_2}
;----------------------------------------------------------------------
; HID Report Sizes (HID_RPT_1}
;----------------------------------------------------------------------
myUSB_HID_RPT_1_IN_RPT_SIZE: EQU 8 ; TODO: Optimize report size
;----------------------------------------------------------------------
myUSB_HID_RPT_1_OUT_RPT_SIZE: EQU 8 ; TODO: Optimize report size
;----------------------------------------------------------------------
myUSB_HID_RPT_1_FEATURE_RPT_SIZE: EQU 0 ; No FEATURE Reports are defined. Size set to 0.
;----------------------------------------------------------------------
; HID Report Sizes (HID_RPT_2}
;----------------------------------------------------------------------
myUSB_HID_RPT_2_IN_RPT_SIZE: EQU 8 ; TODO: Optimize report size
;----------------------------------------------------------------------
myUSB_HID_RPT_2_OUT_RPT_SIZE: EQU 8 ; TODO: Optimize report size
;----------------------------------------------------------------------
myUSB_HID_RPT_2_FEATURE_RPT_SIZE: EQU 0 ; No FEATURE Reports are defined. Size set to 0.
;----------------------------------------------------------------------
;----------------------------------------------------------------------
; USB String Descriptors
;
; This section contains the USB String Descriptors generated
; by the USB User Module Descriptor Generator
;
; Note: The string labels are internally generated by the
; descriptor generator
;
; Descriptors that reference string descriptors, use a hashed
; symbol that is set in an EQU directive with each string
; descriptor.
;----------------------------------------------------------------------
STR_HASH_0: EQU 0 ; String Hash for the null string
AREA UserModules (ROM,REL,CON)
EXPORT myUSB_StringTable
.LITERAL
myUSB_StringTable:
TD_START_TABLE 3 ; Number of USB Strings
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -