18c2ecf20Sopenharmony_ci.. include:: <isonum.txt> 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci================= 48c2ecf20Sopenharmony_ciSentelic Touchpad 58c2ecf20Sopenharmony_ci================= 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci:Copyright: |copy| 2002-2011 Sentelic Corporation. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci:Last update: Dec-07-2011 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciFinger Sensing Pad Intellimouse Mode (scrolling wheel, 4th and 5th buttons) 138c2ecf20Sopenharmony_ci============================================================================ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciA) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 168c2ecf20Sopenharmony_ci page (5th button) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci1. Set sample rate to 200; 198c2ecf20Sopenharmony_ci2. Set sample rate to 200; 208c2ecf20Sopenharmony_ci3. Set sample rate to 80; 218c2ecf20Sopenharmony_ci4. Issuing the "Get device ID" command (0xF2) and waits for the response; 228c2ecf20Sopenharmony_ci5. FSP will respond 0x04. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci:: 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci Packet 1 278c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 288c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 298c2ecf20Sopenharmony_ci 1 |Y|X|y|x|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 | | |B|F|W|W|W|W| 308c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci Byte 1: Bit7 => Y overflow 338c2ecf20Sopenharmony_ci Bit6 => X overflow 348c2ecf20Sopenharmony_ci Bit5 => Y sign bit 358c2ecf20Sopenharmony_ci Bit4 => X sign bit 368c2ecf20Sopenharmony_ci Bit3 => 1 378c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 388c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 398c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 408c2ecf20Sopenharmony_ci Byte 2: X Movement(9-bit 2's complement integers) 418c2ecf20Sopenharmony_ci Byte 3: Y Movement(9-bit 2's complement integers) 428c2ecf20Sopenharmony_ci Byte 4: Bit3~Bit0 => the scrolling wheel's movement since the last data report. 438c2ecf20Sopenharmony_ci valid values, -8 ~ +7 448c2ecf20Sopenharmony_ci Bit4 => 1 = 4th mouse button is pressed, Forward one page. 458c2ecf20Sopenharmony_ci 0 = 4th mouse button is not pressed. 468c2ecf20Sopenharmony_ci Bit5 => 1 = 5th mouse button is pressed, Backward one page. 478c2ecf20Sopenharmony_ci 0 = 5th mouse button is not pressed. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciB) MSID 6: Horizontal and Vertical scrolling 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci- Set bit 1 in register 0x40 to 1 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciFSP replaces scrolling wheel's movement as 4 bits to show horizontal and 548c2ecf20Sopenharmony_civertical scrolling. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci:: 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci Packet 1 598c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 608c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 618c2ecf20Sopenharmony_ci 1 |Y|X|y|x|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 | | |B|F|r|l|u|d| 628c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci Byte 1: Bit7 => Y overflow 658c2ecf20Sopenharmony_ci Bit6 => X overflow 668c2ecf20Sopenharmony_ci Bit5 => Y sign bit 678c2ecf20Sopenharmony_ci Bit4 => X sign bit 688c2ecf20Sopenharmony_ci Bit3 => 1 698c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 708c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 718c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 728c2ecf20Sopenharmony_ci Byte 2: X Movement(9-bit 2's complement integers) 738c2ecf20Sopenharmony_ci Byte 3: Y Movement(9-bit 2's complement integers) 748c2ecf20Sopenharmony_ci Byte 4: Bit0 => the Vertical scrolling movement downward. 758c2ecf20Sopenharmony_ci Bit1 => the Vertical scrolling movement upward. 768c2ecf20Sopenharmony_ci Bit2 => the Horizontal scrolling movement leftward. 778c2ecf20Sopenharmony_ci Bit3 => the Horizontal scrolling movement rightward. 788c2ecf20Sopenharmony_ci Bit4 => 1 = 4th mouse button is pressed, Forward one page. 798c2ecf20Sopenharmony_ci 0 = 4th mouse button is not pressed. 808c2ecf20Sopenharmony_ci Bit5 => 1 = 5th mouse button is pressed, Backward one page. 818c2ecf20Sopenharmony_ci 0 = 5th mouse button is not pressed. 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ciC) MSID 7 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ciFSP uses 2 packets (8 Bytes) to represent Absolute Position. 868c2ecf20Sopenharmony_ciso we have PACKET NUMBER to identify packets. 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci If PACKET NUMBER is 0, the packet is Packet 1. 898c2ecf20Sopenharmony_ci If PACKET NUMBER is 1, the packet is Packet 2. 908c2ecf20Sopenharmony_ci Please count this number in program. 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ciMSID6 special packet will be enable at the same time when enable MSID 7. 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ciAbsolute position for STL3886-G0 958c2ecf20Sopenharmony_ci================================ 968c2ecf20Sopenharmony_ci 978c2ecf20Sopenharmony_ci1. Set bit 2 or 3 in register 0x40 to 1 988c2ecf20Sopenharmony_ci2. Set bit 6 in register 0x40 to 1 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci:: 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci Packet 1 (ABSOLUTE POSITION) 1038c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 1048c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 1058c2ecf20Sopenharmony_ci 1 |0|1|V|1|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|d|u|X|X|Y|Y| 1068c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 1098c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 1108c2ecf20Sopenharmony_ci => 10, Notify packet 1118c2ecf20Sopenharmony_ci Bit5 => valid bit 1128c2ecf20Sopenharmony_ci Bit4 => 1 1138c2ecf20Sopenharmony_ci Bit3 => 1 1148c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 1158c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 1168c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 1178c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 1188c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 1198c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 1208c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 1218c2ecf20Sopenharmony_ci Bit4 => scroll up 1228c2ecf20Sopenharmony_ci Bit5 => scroll down 1238c2ecf20Sopenharmony_ci Bit6 => scroll left 1248c2ecf20Sopenharmony_ci Bit7 => scroll right 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci Notify Packet for G0 1278c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 1288c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 1298c2ecf20Sopenharmony_ci 1 |1|0|0|1|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |M|M|M|M|M|M|M|M| 4 |0|0|0|0|0|0|0|0| 1308c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 1338c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 1348c2ecf20Sopenharmony_ci => 10, Notify packet 1358c2ecf20Sopenharmony_ci Bit5 => 0 1368c2ecf20Sopenharmony_ci Bit4 => 1 1378c2ecf20Sopenharmony_ci Bit3 => 1 1388c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 1398c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 1408c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 1418c2ecf20Sopenharmony_ci Byte 2: Message Type => 0x5A (Enable/Disable status packet) 1428c2ecf20Sopenharmony_ci Mode Type => 0xA5 (Normal/Icon mode status) 1438c2ecf20Sopenharmony_ci Byte 3: Message Type => 0x00 (Disabled) 1448c2ecf20Sopenharmony_ci => 0x01 (Enabled) 1458c2ecf20Sopenharmony_ci Mode Type => 0x00 (Normal) 1468c2ecf20Sopenharmony_ci => 0x01 (Icon) 1478c2ecf20Sopenharmony_ci Byte 4: Bit7~Bit0 => Don't Care 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ciAbsolute position for STL3888-Ax 1508c2ecf20Sopenharmony_ci================================ 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci:: 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci Packet 1 (ABSOLUTE POSITION) 1558c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 1568c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 1578c2ecf20Sopenharmony_ci 1 |0|1|V|A|1|L|0|1| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |x|x|y|y|X|X|Y|Y| 1588c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 1618c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 1628c2ecf20Sopenharmony_ci => 10, Notify packet 1638c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 1648c2ecf20Sopenharmony_ci Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up. 1658c2ecf20Sopenharmony_ci When both fingers are up, the last two reports have zero valid 1668c2ecf20Sopenharmony_ci bit. 1678c2ecf20Sopenharmony_ci Bit4 => arc 1688c2ecf20Sopenharmony_ci Bit3 => 1 1698c2ecf20Sopenharmony_ci Bit2 => Left Button, 1 is pressed, 0 is released. 1708c2ecf20Sopenharmony_ci Bit1 => 0 1718c2ecf20Sopenharmony_ci Bit0 => 1 1728c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 1738c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 1748c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 1758c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 1768c2ecf20Sopenharmony_ci Bit5~Bit4 => y1_g 1778c2ecf20Sopenharmony_ci Bit7~Bit6 => x1_g 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ci Packet 2 (ABSOLUTE POSITION) 1808c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 1818c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 1828c2ecf20Sopenharmony_ci 1 |0|1|V|A|1|R|1|0| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |x|x|y|y|X|X|Y|Y| 1838c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 1868c2ecf20Sopenharmony_ci => 01, Absolute coordinates packet 1878c2ecf20Sopenharmony_ci => 10, Notify packet 1888c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 1898c2ecf20Sopenharmony_ci Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up. 1908c2ecf20Sopenharmony_ci When both fingers are up, the last two reports have zero valid 1918c2ecf20Sopenharmony_ci bit. 1928c2ecf20Sopenharmony_ci Bit4 => arc 1938c2ecf20Sopenharmony_ci Bit3 => 1 1948c2ecf20Sopenharmony_ci Bit2 => Right Button, 1 is pressed, 0 is released. 1958c2ecf20Sopenharmony_ci Bit1 => 1 1968c2ecf20Sopenharmony_ci Bit0 => 0 1978c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 1988c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 1998c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 2008c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 2018c2ecf20Sopenharmony_ci Bit5~Bit4 => y2_g 2028c2ecf20Sopenharmony_ci Bit7~Bit6 => x2_g 2038c2ecf20Sopenharmony_ci 2048c2ecf20Sopenharmony_ci Notify Packet for STL3888-Ax 2058c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 2068c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 2078c2ecf20Sopenharmony_ci 1 |1|0|1|P|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |0|0|F|F|0|0|0|i| 4 |r|l|d|u|0|0|0|0| 2088c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 2098c2ecf20Sopenharmony_ci 2108c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 2118c2ecf20Sopenharmony_ci => 01, Absolute coordinates packet 2128c2ecf20Sopenharmony_ci => 10, Notify packet 2138c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 2148c2ecf20Sopenharmony_ci Bit5 => 1 2158c2ecf20Sopenharmony_ci Bit4 => when in absolute coordinates mode (valid when EN_PKT_GO is 1): 2168c2ecf20Sopenharmony_ci 0: left button is generated by the on-pad command 2178c2ecf20Sopenharmony_ci 1: left button is generated by the external button 2188c2ecf20Sopenharmony_ci Bit3 => 1 2198c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 2208c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 2218c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 2228c2ecf20Sopenharmony_ci Byte 2: Message Type => 0xB7 (Multi Finger, Multi Coordinate mode) 2238c2ecf20Sopenharmony_ci Byte 3: Bit7~Bit6 => Don't care 2248c2ecf20Sopenharmony_ci Bit5~Bit4 => Number of fingers 2258c2ecf20Sopenharmony_ci Bit3~Bit1 => Reserved 2268c2ecf20Sopenharmony_ci Bit0 => 1: enter gesture mode; 0: leaving gesture mode 2278c2ecf20Sopenharmony_ci Byte 4: Bit7 => scroll right button 2288c2ecf20Sopenharmony_ci Bit6 => scroll left button 2298c2ecf20Sopenharmony_ci Bit5 => scroll down button 2308c2ecf20Sopenharmony_ci Bit4 => scroll up button 2318c2ecf20Sopenharmony_ci * Note that if gesture and additional button (Bit4~Bit7) 2328c2ecf20Sopenharmony_ci happen at the same time, the button information will not 2338c2ecf20Sopenharmony_ci be sent. 2348c2ecf20Sopenharmony_ci Bit3~Bit0 => Reserved 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ciSample sequence of Multi-finger, Multi-coordinate mode: 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci notify packet (valid bit == 1), abs pkt 1, abs pkt 2, abs pkt 1, 2398c2ecf20Sopenharmony_ci abs pkt 2, ..., notify packet (valid bit == 0) 2408c2ecf20Sopenharmony_ci 2418c2ecf20Sopenharmony_ciAbsolute position for STL3888-B0 2428c2ecf20Sopenharmony_ci================================ 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci:: 2458c2ecf20Sopenharmony_ci 2468c2ecf20Sopenharmony_ci Packet 1(ABSOLUTE POSITION) 2478c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 2488c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 2498c2ecf20Sopenharmony_ci 1 |0|1|V|F|1|0|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|u|d|X|X|Y|Y| 2508c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 2538c2ecf20Sopenharmony_ci => 01, Absolute coordinates packet 2548c2ecf20Sopenharmony_ci => 10, Notify packet 2558c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 2568c2ecf20Sopenharmony_ci Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up. 2578c2ecf20Sopenharmony_ci When both fingers are up, the last two reports have zero valid 2588c2ecf20Sopenharmony_ci bit. 2598c2ecf20Sopenharmony_ci Bit4 => finger up/down information. 1: finger down, 0: finger up. 2608c2ecf20Sopenharmony_ci Bit3 => 1 2618c2ecf20Sopenharmony_ci Bit2 => finger index, 0 is the first finger, 1 is the second finger. 2628c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 2638c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 2648c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 2658c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 2668c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 2678c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 2688c2ecf20Sopenharmony_ci Bit4 => scroll down button 2698c2ecf20Sopenharmony_ci Bit5 => scroll up button 2708c2ecf20Sopenharmony_ci Bit6 => scroll left button 2718c2ecf20Sopenharmony_ci Bit7 => scroll right button 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci Packet 2 (ABSOLUTE POSITION) 2748c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 2758c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 2768c2ecf20Sopenharmony_ci 1 |0|1|V|F|1|1|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|u|d|X|X|Y|Y| 2778c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 2808c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 2818c2ecf20Sopenharmony_ci => 10, Notify packet 2828c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 2838c2ecf20Sopenharmony_ci Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up. 2848c2ecf20Sopenharmony_ci When both fingers are up, the last two reports have zero valid 2858c2ecf20Sopenharmony_ci bit. 2868c2ecf20Sopenharmony_ci Bit4 => finger up/down information. 1: finger down, 0: finger up. 2878c2ecf20Sopenharmony_ci Bit3 => 1 2888c2ecf20Sopenharmony_ci Bit2 => finger index, 0 is the first finger, 1 is the second finger. 2898c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 2908c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 2918c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 2928c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 2938c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 2948c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 2958c2ecf20Sopenharmony_ci Bit4 => scroll down button 2968c2ecf20Sopenharmony_ci Bit5 => scroll up button 2978c2ecf20Sopenharmony_ci Bit6 => scroll left button 2988c2ecf20Sopenharmony_ci Bit7 => scroll right button 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_ciNotify Packet for STL3888-B0:: 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 3038c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 3048c2ecf20Sopenharmony_ci 1 |1|0|1|P|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |0|0|F|F|0|0|0|i| 4 |r|l|u|d|0|0|0|0| 3058c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 3088c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 3098c2ecf20Sopenharmony_ci => 10, Notify packet 3108c2ecf20Sopenharmony_ci => 11, Normal data packet with on-pad click 3118c2ecf20Sopenharmony_ci Bit5 => 1 3128c2ecf20Sopenharmony_ci Bit4 => when in absolute coordinates mode (valid when EN_PKT_GO is 1): 3138c2ecf20Sopenharmony_ci 0: left button is generated by the on-pad command 3148c2ecf20Sopenharmony_ci 1: left button is generated by the external button 3158c2ecf20Sopenharmony_ci Bit3 => 1 3168c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 3178c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 3188c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 3198c2ecf20Sopenharmony_ci Byte 2: Message Type => 0xB7 (Multi Finger, Multi Coordinate mode) 3208c2ecf20Sopenharmony_ci Byte 3: Bit7~Bit6 => Don't care 3218c2ecf20Sopenharmony_ci Bit5~Bit4 => Number of fingers 3228c2ecf20Sopenharmony_ci Bit3~Bit1 => Reserved 3238c2ecf20Sopenharmony_ci Bit0 => 1: enter gesture mode; 0: leaving gesture mode 3248c2ecf20Sopenharmony_ci Byte 4: Bit7 => scroll right button 3258c2ecf20Sopenharmony_ci Bit6 => scroll left button 3268c2ecf20Sopenharmony_ci Bit5 => scroll up button 3278c2ecf20Sopenharmony_ci Bit4 => scroll down button 3288c2ecf20Sopenharmony_ci * Note that if gesture and additional button(Bit4~Bit7) 3298c2ecf20Sopenharmony_ci happen at the same time, the button information will not 3308c2ecf20Sopenharmony_ci be sent. 3318c2ecf20Sopenharmony_ci Bit3~Bit0 => Reserved 3328c2ecf20Sopenharmony_ci 3338c2ecf20Sopenharmony_ciSample sequence of Multi-finger, Multi-coordinate mode: 3348c2ecf20Sopenharmony_ci 3358c2ecf20Sopenharmony_ci notify packet (valid bit == 1), abs pkt 1, abs pkt 2, abs pkt 1, 3368c2ecf20Sopenharmony_ci abs pkt 2, ..., notify packet (valid bit == 0) 3378c2ecf20Sopenharmony_ci 3388c2ecf20Sopenharmony_ciAbsolute position for STL3888-Cx and STL3888-Dx 3398c2ecf20Sopenharmony_ci=============================================== 3408c2ecf20Sopenharmony_ci 3418c2ecf20Sopenharmony_ci:: 3428c2ecf20Sopenharmony_ci 3438c2ecf20Sopenharmony_ci Single Finger, Absolute Coordinate Mode (SFAC) 3448c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 3458c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 3468c2ecf20Sopenharmony_ci 1 |0|1|0|P|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|B|F|X|X|Y|Y| 3478c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 3508c2ecf20Sopenharmony_ci => 01, Absolute coordinates packet 3518c2ecf20Sopenharmony_ci => 10, Notify packet 3528c2ecf20Sopenharmony_ci Bit5 => Coordinate mode(always 0 in SFAC mode): 3538c2ecf20Sopenharmony_ci 0: single-finger absolute coordinates (SFAC) mode 3548c2ecf20Sopenharmony_ci 1: multi-finger, multiple coordinates (MFMC) mode 3558c2ecf20Sopenharmony_ci Bit4 => 0: The LEFT button is generated by on-pad command (OPC) 3568c2ecf20Sopenharmony_ci 1: The LEFT button is generated by external button 3578c2ecf20Sopenharmony_ci Default is 1 even if the LEFT button is not pressed. 3588c2ecf20Sopenharmony_ci Bit3 => Always 1, as specified by PS/2 protocol. 3598c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 3608c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 3618c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 3628c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 3638c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 3648c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 3658c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 3668c2ecf20Sopenharmony_ci Bit4 => 4th mouse button(forward one page) 3678c2ecf20Sopenharmony_ci Bit5 => 5th mouse button(backward one page) 3688c2ecf20Sopenharmony_ci Bit6 => scroll left button 3698c2ecf20Sopenharmony_ci Bit7 => scroll right button 3708c2ecf20Sopenharmony_ci 3718c2ecf20Sopenharmony_ci Multi Finger, Multiple Coordinates Mode (MFMC): 3728c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 3738c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 3748c2ecf20Sopenharmony_ci 1 |0|1|1|P|1|F|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|B|F|X|X|Y|Y| 3758c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 3768c2ecf20Sopenharmony_ci 3778c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 3788c2ecf20Sopenharmony_ci => 01, Absolute coordination packet 3798c2ecf20Sopenharmony_ci => 10, Notify packet 3808c2ecf20Sopenharmony_ci Bit5 => Coordinate mode (always 1 in MFMC mode): 3818c2ecf20Sopenharmony_ci 0: single-finger absolute coordinates (SFAC) mode 3828c2ecf20Sopenharmony_ci 1: multi-finger, multiple coordinates (MFMC) mode 3838c2ecf20Sopenharmony_ci Bit4 => 0: The LEFT button is generated by on-pad command (OPC) 3848c2ecf20Sopenharmony_ci 1: The LEFT button is generated by external button 3858c2ecf20Sopenharmony_ci Default is 1 even if the LEFT button is not pressed. 3868c2ecf20Sopenharmony_ci Bit3 => Always 1, as specified by PS/2 protocol. 3878c2ecf20Sopenharmony_ci Bit2 => Finger index, 0 is the first finger, 1 is the second finger. 3888c2ecf20Sopenharmony_ci If bit 1 and 0 are all 1 and bit 4 is 0, the middle external 3898c2ecf20Sopenharmony_ci button is pressed. 3908c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 3918c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 3928c2ecf20Sopenharmony_ci Byte 2: X coordinate (xpos[9:2]) 3938c2ecf20Sopenharmony_ci Byte 3: Y coordinate (ypos[9:2]) 3948c2ecf20Sopenharmony_ci Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0]) 3958c2ecf20Sopenharmony_ci Bit3~Bit2 => X coordinate (ypos[1:0]) 3968c2ecf20Sopenharmony_ci Bit4 => 4th mouse button(forward one page) 3978c2ecf20Sopenharmony_ci Bit5 => 5th mouse button(backward one page) 3988c2ecf20Sopenharmony_ci Bit6 => scroll left button 3998c2ecf20Sopenharmony_ci Bit7 => scroll right button 4008c2ecf20Sopenharmony_ci 4018c2ecf20Sopenharmony_ciWhen one of the two fingers is up, the device will output four consecutive 4028c2ecf20Sopenharmony_ciMFMC#0 report packets with zero X and Y to represent 1st finger is up or 4038c2ecf20Sopenharmony_cifour consecutive MFMC#1 report packets with zero X and Y to represent that 4048c2ecf20Sopenharmony_cithe 2nd finger is up. On the other hand, if both fingers are up, the device 4058c2ecf20Sopenharmony_ciwill output four consecutive single-finger, absolute coordinate(SFAC) packets 4068c2ecf20Sopenharmony_ciwith zero X and Y. 4078c2ecf20Sopenharmony_ci 4088c2ecf20Sopenharmony_ciNotify Packet for STL3888-Cx/Dx:: 4098c2ecf20Sopenharmony_ci 4108c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 4118c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 4128c2ecf20Sopenharmony_ci 1 |1|0|0|P|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |0|0|F|F|0|0|0|i| 4 |r|l|u|d|0|0|0|0| 4138c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 4148c2ecf20Sopenharmony_ci 4158c2ecf20Sopenharmony_ci Byte 1: Bit7~Bit6 => 00, Normal data packet 4168c2ecf20Sopenharmony_ci => 01, Absolute coordinates packet 4178c2ecf20Sopenharmony_ci => 10, Notify packet 4188c2ecf20Sopenharmony_ci Bit5 => Always 0 4198c2ecf20Sopenharmony_ci Bit4 => 0: The LEFT button is generated by on-pad command(OPC) 4208c2ecf20Sopenharmony_ci 1: The LEFT button is generated by external button 4218c2ecf20Sopenharmony_ci Default is 1 even if the LEFT button is not pressed. 4228c2ecf20Sopenharmony_ci Bit3 => 1 4238c2ecf20Sopenharmony_ci Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 4248c2ecf20Sopenharmony_ci Bit1 => Right Button, 1 is pressed, 0 is not pressed. 4258c2ecf20Sopenharmony_ci Bit0 => Left Button, 1 is pressed, 0 is not pressed. 4268c2ecf20Sopenharmony_ci Byte 2: Message type: 4278c2ecf20Sopenharmony_ci 0xba => gesture information 4288c2ecf20Sopenharmony_ci 0xc0 => one finger hold-rotating gesture 4298c2ecf20Sopenharmony_ci Byte 3: The first parameter for the received message: 4308c2ecf20Sopenharmony_ci 0xba => gesture ID (refer to the 'Gesture ID' section) 4318c2ecf20Sopenharmony_ci 0xc0 => region ID 4328c2ecf20Sopenharmony_ci Byte 4: The second parameter for the received message: 4338c2ecf20Sopenharmony_ci 0xba => N/A 4348c2ecf20Sopenharmony_ci 0xc0 => finger up/down information 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_ciSample sequence of Multi-finger, Multi-coordinates mode: 4378c2ecf20Sopenharmony_ci 4388c2ecf20Sopenharmony_ci notify packet (valid bit == 1), MFMC packet 1 (byte 1, bit 2 == 0), 4398c2ecf20Sopenharmony_ci MFMC packet 2 (byte 1, bit 2 == 1), MFMC packet 1, MFMC packet 2, 4408c2ecf20Sopenharmony_ci ..., notify packet (valid bit == 0) 4418c2ecf20Sopenharmony_ci 4428c2ecf20Sopenharmony_ci That is, when the device is in MFMC mode, the host will receive 4438c2ecf20Sopenharmony_ci interleaved absolute coordinate packets for each finger. 4448c2ecf20Sopenharmony_ci 4458c2ecf20Sopenharmony_ciFSP Enable/Disable packet 4468c2ecf20Sopenharmony_ci========================= 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci:: 4498c2ecf20Sopenharmony_ci 4508c2ecf20Sopenharmony_ci Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 4518c2ecf20Sopenharmony_ci BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 4528c2ecf20Sopenharmony_ci 1 |Y|X|0|0|1|M|R|L| 2 |0|1|0|1|1|0|1|E| 3 | | | | | | | | | 4 | | | | | | | | | 4538c2ecf20Sopenharmony_ci |---------------| |---------------| |---------------| |---------------| 4548c2ecf20Sopenharmony_ci 4558c2ecf20Sopenharmony_ci FSP will send out enable/disable packet when FSP receive PS/2 enable/disable 4568c2ecf20Sopenharmony_ci command. Host will receive the packet which Middle, Right, Left button will 4578c2ecf20Sopenharmony_ci be set. The packet only use byte 0 and byte 1 as a pattern of original packet. 4588c2ecf20Sopenharmony_ci Ignore the other bytes of the packet. 4598c2ecf20Sopenharmony_ci 4608c2ecf20Sopenharmony_ci Byte 1: Bit7 => 0, Y overflow 4618c2ecf20Sopenharmony_ci Bit6 => 0, X overflow 4628c2ecf20Sopenharmony_ci Bit5 => 0, Y sign bit 4638c2ecf20Sopenharmony_ci Bit4 => 0, X sign bit 4648c2ecf20Sopenharmony_ci Bit3 => 1 4658c2ecf20Sopenharmony_ci Bit2 => 1, Middle Button 4668c2ecf20Sopenharmony_ci Bit1 => 1, Right Button 4678c2ecf20Sopenharmony_ci Bit0 => 1, Left Button 4688c2ecf20Sopenharmony_ci Byte 2: Bit7~1 => (0101101b) 4698c2ecf20Sopenharmony_ci Bit0 => 1 = Enable 4708c2ecf20Sopenharmony_ci 0 = Disable 4718c2ecf20Sopenharmony_ci Byte 3: Don't care 4728c2ecf20Sopenharmony_ci Byte 4: Don't care (MOUSE ID 3, 4) 4738c2ecf20Sopenharmony_ci Byte 5~8: Don't care (Absolute packet) 4748c2ecf20Sopenharmony_ci 4758c2ecf20Sopenharmony_ciPS/2 Command Set 4768c2ecf20Sopenharmony_ci================ 4778c2ecf20Sopenharmony_ci 4788c2ecf20Sopenharmony_ciFSP supports basic PS/2 commanding set and modes, refer to following URL for 4798c2ecf20Sopenharmony_cidetails about PS/2 commands: 4808c2ecf20Sopenharmony_ci 4818c2ecf20Sopenharmony_cihttp://www.computer-engineering.org/ps2mouse/ 4828c2ecf20Sopenharmony_ci 4838c2ecf20Sopenharmony_ciProgramming Sequence for Determining Packet Parsing Flow 4848c2ecf20Sopenharmony_ci======================================================== 4858c2ecf20Sopenharmony_ci 4868c2ecf20Sopenharmony_ci1. Identify FSP by reading device ID(0x00) and version(0x01) register 4878c2ecf20Sopenharmony_ci 4888c2ecf20Sopenharmony_ci2. For FSP version < STL3888 Cx, determine number of buttons by reading 4898c2ecf20Sopenharmony_ci the 'test mode status' (0x20) register:: 4908c2ecf20Sopenharmony_ci 4918c2ecf20Sopenharmony_ci buttons = reg[0x20] & 0x30 4928c2ecf20Sopenharmony_ci 4938c2ecf20Sopenharmony_ci if buttons == 0x30 or buttons == 0x20: 4948c2ecf20Sopenharmony_ci # two/four buttons 4958c2ecf20Sopenharmony_ci Refer to 'Finger Sensing Pad PS/2 Mouse Intellimouse' 4968c2ecf20Sopenharmony_ci section A for packet parsing detail(ignore byte 4, bit ~ 7) 4978c2ecf20Sopenharmony_ci elif buttons == 0x10: 4988c2ecf20Sopenharmony_ci # 6 buttons 4998c2ecf20Sopenharmony_ci Refer to 'Finger Sensing Pad PS/2 Mouse Intellimouse' 5008c2ecf20Sopenharmony_ci section B for packet parsing detail 5018c2ecf20Sopenharmony_ci elif buttons == 0x00: 5028c2ecf20Sopenharmony_ci # 6 buttons 5038c2ecf20Sopenharmony_ci Refer to 'Finger Sensing Pad PS/2 Mouse Intellimouse' 5048c2ecf20Sopenharmony_ci section A for packet parsing detail 5058c2ecf20Sopenharmony_ci 5068c2ecf20Sopenharmony_ci3. For FSP version >= STL3888 Cx: 5078c2ecf20Sopenharmony_ci Refer to 'Finger Sensing Pad PS/2 Mouse Intellimouse' 5088c2ecf20Sopenharmony_ci section A for packet parsing detail (ignore byte 4, bit ~ 7) 5098c2ecf20Sopenharmony_ci 5108c2ecf20Sopenharmony_ciProgramming Sequence for Register Reading/Writing 5118c2ecf20Sopenharmony_ci================================================= 5128c2ecf20Sopenharmony_ci 5138c2ecf20Sopenharmony_ciRegister inversion requirement: 5148c2ecf20Sopenharmony_ci 5158c2ecf20Sopenharmony_ciFollowing values needed to be inverted(the '~' operator in C) before being 5168c2ecf20Sopenharmony_cisent to FSP:: 5178c2ecf20Sopenharmony_ci 5188c2ecf20Sopenharmony_ci 0xe8, 0xe9, 0xee, 0xf2, 0xf3 and 0xff. 5198c2ecf20Sopenharmony_ci 5208c2ecf20Sopenharmony_ciRegister swapping requirement: 5218c2ecf20Sopenharmony_ci 5228c2ecf20Sopenharmony_ciFollowing values needed to have their higher 4 bits and lower 4 bits being 5238c2ecf20Sopenharmony_ciswapped before being sent to FSP:: 5248c2ecf20Sopenharmony_ci 5258c2ecf20Sopenharmony_ci 10, 20, 40, 60, 80, 100 and 200. 5268c2ecf20Sopenharmony_ci 5278c2ecf20Sopenharmony_ciRegister reading sequence: 5288c2ecf20Sopenharmony_ci 5298c2ecf20Sopenharmony_ci 1. send 0xf3 PS/2 command to FSP; 5308c2ecf20Sopenharmony_ci 5318c2ecf20Sopenharmony_ci 2. send 0x66 PS/2 command to FSP; 5328c2ecf20Sopenharmony_ci 5338c2ecf20Sopenharmony_ci 3. send 0x88 PS/2 command to FSP; 5348c2ecf20Sopenharmony_ci 5358c2ecf20Sopenharmony_ci 4. send 0xf3 PS/2 command to FSP; 5368c2ecf20Sopenharmony_ci 5378c2ecf20Sopenharmony_ci 5. if the register address being to read is not required to be 5388c2ecf20Sopenharmony_ci inverted(refer to the 'Register inversion requirement' section), 5398c2ecf20Sopenharmony_ci goto step 6 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_ci a. send 0x68 PS/2 command to FSP; 5428c2ecf20Sopenharmony_ci 5438c2ecf20Sopenharmony_ci b. send the inverted register address to FSP and goto step 8; 5448c2ecf20Sopenharmony_ci 5458c2ecf20Sopenharmony_ci 6. if the register address being to read is not required to be 5468c2ecf20Sopenharmony_ci swapped(refer to the 'Register swapping requirement' section), 5478c2ecf20Sopenharmony_ci goto step 7 5488c2ecf20Sopenharmony_ci 5498c2ecf20Sopenharmony_ci a. send 0xcc PS/2 command to FSP; 5508c2ecf20Sopenharmony_ci 5518c2ecf20Sopenharmony_ci b. send the swapped register address to FSP and goto step 8; 5528c2ecf20Sopenharmony_ci 5538c2ecf20Sopenharmony_ci 7. send 0x66 PS/2 command to FSP; 5548c2ecf20Sopenharmony_ci 5558c2ecf20Sopenharmony_ci a. send the original register address to FSP and goto step 8; 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_ci 8. send 0xe9(status request) PS/2 command to FSP; 5588c2ecf20Sopenharmony_ci 5598c2ecf20Sopenharmony_ci 9. the 4th byte of the response read from FSP should be the 5608c2ecf20Sopenharmony_ci requested register value(?? indicates don't care byte):: 5618c2ecf20Sopenharmony_ci 5628c2ecf20Sopenharmony_ci host: 0xe9 5638c2ecf20Sopenharmony_ci 3888: 0xfa (??) (??) (val) 5648c2ecf20Sopenharmony_ci 5658c2ecf20Sopenharmony_ci * Note that since the Cx release, the hardware will return 1's 5668c2ecf20Sopenharmony_ci complement of the register value at the 3rd byte of status request 5678c2ecf20Sopenharmony_ci result:: 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_ci host: 0xe9 5708c2ecf20Sopenharmony_ci 3888: 0xfa (??) (~val) (val) 5718c2ecf20Sopenharmony_ci 5728c2ecf20Sopenharmony_ciRegister writing sequence: 5738c2ecf20Sopenharmony_ci 5748c2ecf20Sopenharmony_ci 1. send 0xf3 PS/2 command to FSP; 5758c2ecf20Sopenharmony_ci 5768c2ecf20Sopenharmony_ci 2. if the register address being to write is not required to be 5778c2ecf20Sopenharmony_ci inverted(refer to the 'Register inversion requirement' section), 5788c2ecf20Sopenharmony_ci goto step 3 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_ci a. send 0x74 PS/2 command to FSP; 5818c2ecf20Sopenharmony_ci 5828c2ecf20Sopenharmony_ci b. send the inverted register address to FSP and goto step 5; 5838c2ecf20Sopenharmony_ci 5848c2ecf20Sopenharmony_ci 3. if the register address being to write is not required to be 5858c2ecf20Sopenharmony_ci swapped(refer to the 'Register swapping requirement' section), 5868c2ecf20Sopenharmony_ci goto step 4 5878c2ecf20Sopenharmony_ci 5888c2ecf20Sopenharmony_ci a. send 0x77 PS/2 command to FSP; 5898c2ecf20Sopenharmony_ci 5908c2ecf20Sopenharmony_ci b. send the swapped register address to FSP and goto step 5; 5918c2ecf20Sopenharmony_ci 5928c2ecf20Sopenharmony_ci 4. send 0x55 PS/2 command to FSP; 5938c2ecf20Sopenharmony_ci 5948c2ecf20Sopenharmony_ci a. send the register address to FSP and goto step 5; 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_ci 5. send 0xf3 PS/2 command to FSP; 5978c2ecf20Sopenharmony_ci 5988c2ecf20Sopenharmony_ci 6. if the register value being to write is not required to be 5998c2ecf20Sopenharmony_ci inverted(refer to the 'Register inversion requirement' section), 6008c2ecf20Sopenharmony_ci goto step 7 6018c2ecf20Sopenharmony_ci 6028c2ecf20Sopenharmony_ci a. send 0x47 PS/2 command to FSP; 6038c2ecf20Sopenharmony_ci 6048c2ecf20Sopenharmony_ci b. send the inverted register value to FSP and goto step 9; 6058c2ecf20Sopenharmony_ci 6068c2ecf20Sopenharmony_ci 7. if the register value being to write is not required to be 6078c2ecf20Sopenharmony_ci swapped(refer to the 'Register swapping requirement' section), 6088c2ecf20Sopenharmony_ci goto step 8 6098c2ecf20Sopenharmony_ci 6108c2ecf20Sopenharmony_ci a. send 0x44 PS/2 command to FSP; 6118c2ecf20Sopenharmony_ci 6128c2ecf20Sopenharmony_ci b. send the swapped register value to FSP and goto step 9; 6138c2ecf20Sopenharmony_ci 6148c2ecf20Sopenharmony_ci 8. send 0x33 PS/2 command to FSP; 6158c2ecf20Sopenharmony_ci 6168c2ecf20Sopenharmony_ci a. send the register value to FSP; 6178c2ecf20Sopenharmony_ci 6188c2ecf20Sopenharmony_ci 9. the register writing sequence is completed. 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_ci * Since the Cx release, the hardware will return 1's 6218c2ecf20Sopenharmony_ci complement of the register value at the 3rd byte of status request 6228c2ecf20Sopenharmony_ci result. Host can optionally send another 0xe9 (status request) PS/2 6238c2ecf20Sopenharmony_ci command to FSP at the end of register writing to verify that the 6248c2ecf20Sopenharmony_ci register writing operation is successful (?? indicates don't care 6258c2ecf20Sopenharmony_ci byte):: 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_ci host: 0xe9 6288c2ecf20Sopenharmony_ci 3888: 0xfa (??) (~val) (val) 6298c2ecf20Sopenharmony_ci 6308c2ecf20Sopenharmony_ciProgramming Sequence for Page Register Reading/Writing 6318c2ecf20Sopenharmony_ci====================================================== 6328c2ecf20Sopenharmony_ci 6338c2ecf20Sopenharmony_ciIn order to overcome the limitation of maximum number of registers 6348c2ecf20Sopenharmony_cisupported, the hardware separates register into different groups called 6358c2ecf20Sopenharmony_ci'pages.' Each page is able to include up to 255 registers. 6368c2ecf20Sopenharmony_ci 6378c2ecf20Sopenharmony_ciThe default page after power up is 0x82; therefore, if one has to get 6388c2ecf20Sopenharmony_ciaccess to register 0x8301, one has to use following sequence to switch 6398c2ecf20Sopenharmony_cito page 0x83, then start reading/writing from/to offset 0x01 by using 6408c2ecf20Sopenharmony_cithe register read/write sequence described in previous section. 6418c2ecf20Sopenharmony_ci 6428c2ecf20Sopenharmony_ciPage register reading sequence: 6438c2ecf20Sopenharmony_ci 6448c2ecf20Sopenharmony_ci 1. send 0xf3 PS/2 command to FSP; 6458c2ecf20Sopenharmony_ci 6468c2ecf20Sopenharmony_ci 2. send 0x66 PS/2 command to FSP; 6478c2ecf20Sopenharmony_ci 6488c2ecf20Sopenharmony_ci 3. send 0x88 PS/2 command to FSP; 6498c2ecf20Sopenharmony_ci 6508c2ecf20Sopenharmony_ci 4. send 0xf3 PS/2 command to FSP; 6518c2ecf20Sopenharmony_ci 6528c2ecf20Sopenharmony_ci 5. send 0x83 PS/2 command to FSP; 6538c2ecf20Sopenharmony_ci 6548c2ecf20Sopenharmony_ci 6. send 0x88 PS/2 command to FSP; 6558c2ecf20Sopenharmony_ci 6568c2ecf20Sopenharmony_ci 7. send 0xe9(status request) PS/2 command to FSP; 6578c2ecf20Sopenharmony_ci 6588c2ecf20Sopenharmony_ci 8. the response read from FSP should be the requested page value. 6598c2ecf20Sopenharmony_ci 6608c2ecf20Sopenharmony_ci 6618c2ecf20Sopenharmony_ciPage register writing sequence: 6628c2ecf20Sopenharmony_ci 6638c2ecf20Sopenharmony_ci 1. send 0xf3 PS/2 command to FSP; 6648c2ecf20Sopenharmony_ci 6658c2ecf20Sopenharmony_ci 2. send 0x38 PS/2 command to FSP; 6668c2ecf20Sopenharmony_ci 6678c2ecf20Sopenharmony_ci 3. send 0x88 PS/2 command to FSP; 6688c2ecf20Sopenharmony_ci 6698c2ecf20Sopenharmony_ci 4. send 0xf3 PS/2 command to FSP; 6708c2ecf20Sopenharmony_ci 6718c2ecf20Sopenharmony_ci 5. if the page address being written is not required to be 6728c2ecf20Sopenharmony_ci inverted(refer to the 'Register inversion requirement' section), 6738c2ecf20Sopenharmony_ci goto step 6 6748c2ecf20Sopenharmony_ci 6758c2ecf20Sopenharmony_ci a. send 0x47 PS/2 command to FSP; 6768c2ecf20Sopenharmony_ci 6778c2ecf20Sopenharmony_ci b. send the inverted page address to FSP and goto step 9; 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_ci 6. if the page address being written is not required to be 6808c2ecf20Sopenharmony_ci swapped(refer to the 'Register swapping requirement' section), 6818c2ecf20Sopenharmony_ci goto step 7 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_ci a. send 0x44 PS/2 command to FSP; 6848c2ecf20Sopenharmony_ci 6858c2ecf20Sopenharmony_ci b. send the swapped page address to FSP and goto step 9; 6868c2ecf20Sopenharmony_ci 6878c2ecf20Sopenharmony_ci 7. send 0x33 PS/2 command to FSP; 6888c2ecf20Sopenharmony_ci 6898c2ecf20Sopenharmony_ci 8. send the page address to FSP; 6908c2ecf20Sopenharmony_ci 6918c2ecf20Sopenharmony_ci 9. the page register writing sequence is completed. 6928c2ecf20Sopenharmony_ci 6938c2ecf20Sopenharmony_ciGesture ID 6948c2ecf20Sopenharmony_ci========== 6958c2ecf20Sopenharmony_ci 6968c2ecf20Sopenharmony_ciUnlike other devices which sends multiple fingers' coordinates to host, 6978c2ecf20Sopenharmony_ciFSP processes multiple fingers' coordinates internally and convert them 6988c2ecf20Sopenharmony_ciinto a 8 bits integer, namely 'Gesture ID.' Following is a list of 6998c2ecf20Sopenharmony_cisupported gesture IDs: 7008c2ecf20Sopenharmony_ci 7018c2ecf20Sopenharmony_ci ======= ================================== 7028c2ecf20Sopenharmony_ci ID Description 7038c2ecf20Sopenharmony_ci ======= ================================== 7048c2ecf20Sopenharmony_ci 0x86 2 finger straight up 7058c2ecf20Sopenharmony_ci 0x82 2 finger straight down 7068c2ecf20Sopenharmony_ci 0x80 2 finger straight right 7078c2ecf20Sopenharmony_ci 0x84 2 finger straight left 7088c2ecf20Sopenharmony_ci 0x8f 2 finger zoom in 7098c2ecf20Sopenharmony_ci 0x8b 2 finger zoom out 7108c2ecf20Sopenharmony_ci 0xc0 2 finger curve, counter clockwise 7118c2ecf20Sopenharmony_ci 0xc4 2 finger curve, clockwise 7128c2ecf20Sopenharmony_ci 0x2e 3 finger straight up 7138c2ecf20Sopenharmony_ci 0x2a 3 finger straight down 7148c2ecf20Sopenharmony_ci 0x28 3 finger straight right 7158c2ecf20Sopenharmony_ci 0x2c 3 finger straight left 7168c2ecf20Sopenharmony_ci 0x38 palm 7178c2ecf20Sopenharmony_ci ======= ================================== 7188c2ecf20Sopenharmony_ci 7198c2ecf20Sopenharmony_ciRegister Listing 7208c2ecf20Sopenharmony_ci================ 7218c2ecf20Sopenharmony_ci 7228c2ecf20Sopenharmony_ciRegisters are represented in 16 bits values. The higher 8 bits represent 7238c2ecf20Sopenharmony_cithe page address and the lower 8 bits represent the relative offset within 7248c2ecf20Sopenharmony_cithat particular page. Refer to the 'Programming Sequence for Page Register 7258c2ecf20Sopenharmony_ciReading/Writing' section for instructions on how to change current page 7268c2ecf20Sopenharmony_ciaddress:: 7278c2ecf20Sopenharmony_ci 7288c2ecf20Sopenharmony_ci offset width default r/w name 7298c2ecf20Sopenharmony_ci 0x8200 bit7~bit0 0x01 RO device ID 7308c2ecf20Sopenharmony_ci 7318c2ecf20Sopenharmony_ci 0x8201 bit7~bit0 RW version ID 7328c2ecf20Sopenharmony_ci 0xc1: STL3888 Ax 7338c2ecf20Sopenharmony_ci 0xd0 ~ 0xd2: STL3888 Bx 7348c2ecf20Sopenharmony_ci 0xe0 ~ 0xe1: STL3888 Cx 7358c2ecf20Sopenharmony_ci 0xe2 ~ 0xe3: STL3888 Dx 7368c2ecf20Sopenharmony_ci 7378c2ecf20Sopenharmony_ci 0x8202 bit7~bit0 0x01 RO vendor ID 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_ci 0x8203 bit7~bit0 0x01 RO product ID 7408c2ecf20Sopenharmony_ci 7418c2ecf20Sopenharmony_ci 0x8204 bit3~bit0 0x01 RW revision ID 7428c2ecf20Sopenharmony_ci 7438c2ecf20Sopenharmony_ci 0x820b test mode status 1 7448c2ecf20Sopenharmony_ci bit3 1 RO 0: rotate 180 degree 7458c2ecf20Sopenharmony_ci 1: no rotation 7468c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7478c2ecf20Sopenharmony_ci 7488c2ecf20Sopenharmony_ci 0x820f register file page control 7498c2ecf20Sopenharmony_ci bit2 0 RW 1: rotate 180 degree 7508c2ecf20Sopenharmony_ci 0: no rotation 7518c2ecf20Sopenharmony_ci *supported since Cx 7528c2ecf20Sopenharmony_ci 7538c2ecf20Sopenharmony_ci bit0 0 RW 1 to enable page 1 register files 7548c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7558c2ecf20Sopenharmony_ci 7568c2ecf20Sopenharmony_ci 0x8210 RW system control 1 7578c2ecf20Sopenharmony_ci bit0 1 RW Reserved, must be 1 7588c2ecf20Sopenharmony_ci bit1 0 RW Reserved, must be 0 7598c2ecf20Sopenharmony_ci bit4 0 RW Reserved, must be 0 7608c2ecf20Sopenharmony_ci bit5 1 RW register clock gating enable 7618c2ecf20Sopenharmony_ci 0: read only, 1: read/write enable 7628c2ecf20Sopenharmony_ci (Note that following registers does not require clock gating being 7638c2ecf20Sopenharmony_ci enabled prior to write: 05 06 07 08 09 0c 0f 10 11 12 16 17 18 23 2e 7648c2ecf20Sopenharmony_ci 40 41 42 43. In addition to that, this bit must be 1 when gesture 7658c2ecf20Sopenharmony_ci mode is enabled) 7668c2ecf20Sopenharmony_ci 7678c2ecf20Sopenharmony_ci 0x8220 test mode status 7688c2ecf20Sopenharmony_ci bit5~bit4 RO number of buttons 7698c2ecf20Sopenharmony_ci 11 => 2, lbtn/rbtn 7708c2ecf20Sopenharmony_ci 10 => 4, lbtn/rbtn/scru/scrd 7718c2ecf20Sopenharmony_ci 01 => 6, lbtn/rbtn/scru/scrd/scrl/scrr 7728c2ecf20Sopenharmony_ci 00 => 6, lbtn/rbtn/scru/scrd/fbtn/bbtn 7738c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7748c2ecf20Sopenharmony_ci 7758c2ecf20Sopenharmony_ci 0x8231 RW on-pad command detection 7768c2ecf20Sopenharmony_ci bit7 0 RW on-pad command left button down tag 7778c2ecf20Sopenharmony_ci enable 7788c2ecf20Sopenharmony_ci 0: disable, 1: enable 7798c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7808c2ecf20Sopenharmony_ci 7818c2ecf20Sopenharmony_ci 0x8234 RW on-pad command control 5 7828c2ecf20Sopenharmony_ci bit4~bit0 0x05 RW XLO in 0s/4/1, so 03h = 0010.1b = 2.5 7838c2ecf20Sopenharmony_ci (Note that position unit is in 0.5 scanline) 7848c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7858c2ecf20Sopenharmony_ci 7868c2ecf20Sopenharmony_ci bit7 0 RW on-pad tap zone enable 7878c2ecf20Sopenharmony_ci 0: disable, 1: enable 7888c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_ci 0x8235 RW on-pad command control 6 7918c2ecf20Sopenharmony_ci bit4~bit0 0x1d RW XHI in 0s/4/1, so 19h = 1100.1b = 12.5 7928c2ecf20Sopenharmony_ci (Note that position unit is in 0.5 scanline) 7938c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7948c2ecf20Sopenharmony_ci 7958c2ecf20Sopenharmony_ci 0x8236 RW on-pad command control 7 7968c2ecf20Sopenharmony_ci bit4~bit0 0x04 RW YLO in 0s/4/1, so 03h = 0010.1b = 2.5 7978c2ecf20Sopenharmony_ci (Note that position unit is in 0.5 scanline) 7988c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 7998c2ecf20Sopenharmony_ci 8008c2ecf20Sopenharmony_ci 0x8237 RW on-pad command control 8 8018c2ecf20Sopenharmony_ci bit4~bit0 0x13 RW YHI in 0s/4/1, so 11h = 1000.1b = 8.5 8028c2ecf20Sopenharmony_ci (Note that position unit is in 0.5 scanline) 8038c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8048c2ecf20Sopenharmony_ci 8058c2ecf20Sopenharmony_ci 0x8240 RW system control 5 8068c2ecf20Sopenharmony_ci bit1 0 RW FSP Intellimouse mode enable 8078c2ecf20Sopenharmony_ci 0: disable, 1: enable 8088c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8098c2ecf20Sopenharmony_ci 8108c2ecf20Sopenharmony_ci bit2 0 RW movement + abs. coordinate mode enable 8118c2ecf20Sopenharmony_ci 0: disable, 1: enable 8128c2ecf20Sopenharmony_ci (Note that this function has the functionality of bit 1 even when 8138c2ecf20Sopenharmony_ci bit 1 is not set. However, the format is different from that of bit 1. 8148c2ecf20Sopenharmony_ci In addition, when bit 1 and bit 2 are set at the same time, bit 2 will 8158c2ecf20Sopenharmony_ci override bit 1.) 8168c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8178c2ecf20Sopenharmony_ci 8188c2ecf20Sopenharmony_ci bit3 0 RW abs. coordinate only mode enable 8198c2ecf20Sopenharmony_ci 0: disable, 1: enable 8208c2ecf20Sopenharmony_ci (Note that this function has the functionality of bit 1 even when 8218c2ecf20Sopenharmony_ci bit 1 is not set. However, the format is different from that of bit 1. 8228c2ecf20Sopenharmony_ci In addition, when bit 1, bit 2 and bit 3 are set at the same time, 8238c2ecf20Sopenharmony_ci bit 3 will override bit 1 and 2.) 8248c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8258c2ecf20Sopenharmony_ci 8268c2ecf20Sopenharmony_ci bit5 0 RW auto switch enable 8278c2ecf20Sopenharmony_ci 0: disable, 1: enable 8288c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8298c2ecf20Sopenharmony_ci 8308c2ecf20Sopenharmony_ci bit6 0 RW G0 abs. + notify packet format enable 8318c2ecf20Sopenharmony_ci 0: disable, 1: enable 8328c2ecf20Sopenharmony_ci (Note that the absolute/relative coordinate output still depends on 8338c2ecf20Sopenharmony_ci bit 2 and 3. That is, if any of those bit is 1, host will receive 8348c2ecf20Sopenharmony_ci absolute coordinates; otherwise, host only receives packets with 8358c2ecf20Sopenharmony_ci relative coordinate.) 8368c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8378c2ecf20Sopenharmony_ci 8388c2ecf20Sopenharmony_ci bit7 0 RW EN_PS2_F2: PS/2 gesture mode 2nd 8398c2ecf20Sopenharmony_ci finger packet enable 8408c2ecf20Sopenharmony_ci 0: disable, 1: enable 8418c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8428c2ecf20Sopenharmony_ci 8438c2ecf20Sopenharmony_ci 0x8243 RW on-pad control 8448c2ecf20Sopenharmony_ci bit0 0 RW on-pad control enable 8458c2ecf20Sopenharmony_ci 0: disable, 1: enable 8468c2ecf20Sopenharmony_ci (Note that if this bit is cleared, bit 3/5 will be ineffective) 8478c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8488c2ecf20Sopenharmony_ci 8498c2ecf20Sopenharmony_ci bit3 0 RW on-pad fix vertical scrolling enable 8508c2ecf20Sopenharmony_ci 0: disable, 1: enable 8518c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8528c2ecf20Sopenharmony_ci 8538c2ecf20Sopenharmony_ci bit5 0 RW on-pad fix horizontal scrolling enable 8548c2ecf20Sopenharmony_ci 0: disable, 1: enable 8558c2ecf20Sopenharmony_ci *only supported by H/W prior to Cx 8568c2ecf20Sopenharmony_ci 8578c2ecf20Sopenharmony_ci 0x8290 RW software control register 1 8588c2ecf20Sopenharmony_ci bit0 0 RW absolute coordination mode 8598c2ecf20Sopenharmony_ci 0: disable, 1: enable 8608c2ecf20Sopenharmony_ci *supported since Cx 8618c2ecf20Sopenharmony_ci 8628c2ecf20Sopenharmony_ci bit1 0 RW gesture ID output 8638c2ecf20Sopenharmony_ci 0: disable, 1: enable 8648c2ecf20Sopenharmony_ci *supported since Cx 8658c2ecf20Sopenharmony_ci 8668c2ecf20Sopenharmony_ci bit2 0 RW two fingers' coordinates output 8678c2ecf20Sopenharmony_ci 0: disable, 1: enable 8688c2ecf20Sopenharmony_ci *supported since Cx 8698c2ecf20Sopenharmony_ci 8708c2ecf20Sopenharmony_ci bit3 0 RW finger up one packet output 8718c2ecf20Sopenharmony_ci 0: disable, 1: enable 8728c2ecf20Sopenharmony_ci *supported since Cx 8738c2ecf20Sopenharmony_ci 8748c2ecf20Sopenharmony_ci bit4 0 RW absolute coordination continuous mode 8758c2ecf20Sopenharmony_ci 0: disable, 1: enable 8768c2ecf20Sopenharmony_ci *supported since Cx 8778c2ecf20Sopenharmony_ci 8788c2ecf20Sopenharmony_ci bit6~bit5 00 RW gesture group selection 8798c2ecf20Sopenharmony_ci 00: basic 8808c2ecf20Sopenharmony_ci 01: suite 8818c2ecf20Sopenharmony_ci 10: suite pro 8828c2ecf20Sopenharmony_ci 11: advanced 8838c2ecf20Sopenharmony_ci *supported since Cx 8848c2ecf20Sopenharmony_ci 8858c2ecf20Sopenharmony_ci bit7 0 RW Bx packet output compatible mode 8868c2ecf20Sopenharmony_ci 0: disable, 1: enable 8878c2ecf20Sopenharmony_ci *supported since Cx 8888c2ecf20Sopenharmony_ci *supported since Cx 8898c2ecf20Sopenharmony_ci 8908c2ecf20Sopenharmony_ci 8918c2ecf20Sopenharmony_ci 0x833d RW on-pad command control 1 8928c2ecf20Sopenharmony_ci bit7 1 RW on-pad command detection enable 8938c2ecf20Sopenharmony_ci 0: disable, 1: enable 8948c2ecf20Sopenharmony_ci *supported since Cx 8958c2ecf20Sopenharmony_ci 8968c2ecf20Sopenharmony_ci 0x833e RW on-pad command detection 8978c2ecf20Sopenharmony_ci bit7 0 RW on-pad command left button down tag 8988c2ecf20Sopenharmony_ci enable. Works only in H/W based PS/2 8998c2ecf20Sopenharmony_ci data packet mode. 9008c2ecf20Sopenharmony_ci 0: disable, 1: enable 9018c2ecf20Sopenharmony_ci *supported since Cx 902