English
Language : 

CM118B Datasheet, PDF (19/25 Pages) C-Media Electronics – Highly Integrated & Configurable USB Audio Single Chip
HID Set_Output_Report Format
CM118B
Highly Integrated & Configurable USB Audio Single Chip
Command Format:
bmRequestType bRequest
8’h 21
8’h 09
(Set_Report)
wValue
16’h 02 00
(Rpt Type + Rpt ID)
wIndex
16’h 00 02
16’h 00 03
(Interface)
wLength
16’h 00 04
(4 bytes)
Data
Report
Output Data Format:
byte 0
HID OR0[7:0]
byte1
HID OR1[7:0]
byte2
HID OR2[7:0]
byte3
HID OR3[7:0]
4.6.2 Register Definitions
Offset 0x00--HID_IR0 (HID input report byte 0)
Bits
Read/Write
Description
7-6
R
When HID_OR0[7] == 1’b0:
HID_IR0-3 are programmed by MCU (and GPI)
0: HID_IR1 is used as GPI
1: HID_IR0-3 are used as generic HID registers
2: Values written to HID_IR0-3 are also mapped
to MCU_CTRL, EEPROM_DATA0-1, EEPROM_CTRL
3: Reserved
When HID_OR0[7] == 1’b1:
Always 2’b11
5
R
When HID_OR0[7] == 1’b0:
Generic registers programmed by MCU
When HID_OR0[7] == 1’b1:
Mapped from MCU_CTRL[5]
4
R
Reserved
3
R
0: No activity on Record-Mute button
1: Record-Mute button pressed then released
2
R
0: No activity on Playback-Mute button
1: Playback-Mute button pressed then released
1
R
0: Volume-Down button released
1: Volume-Down button pressed
0
R
0: Volume-Up button released
1: Volume-Up button pressed
Default
0x0
0x0
0x0
0x0
0x0
0x0
0x0
Offset 0x01--HID_IR1 (HID input report byte 1)
Bits
Read/Write
Description
7-0
R
When HID_OR0[7] == 1’b0:
GPI (when HID_IR0[7:6] == 2’b00); or Generic
registers programmed by MCU (otherwise)
When HID_OR0[7] == 1’b1:
Mapped from EEPROM_DATA0
Default
0x00
Datasheet Revision: 1.00
Page 19 / 25
www.cmedia.com.tw
Copyright© C-Media Electronics Inc.