Difference between revisions of "Codec Services"

From 3dbrew
Jump to navigation Jump to search
(heres da hints)
Line 14: Line 14:
 
| Finalize
 
| Finalize
 
|}
 
|}
 +
 +
== Touchscreen ==
 +
The touchscreen is the SPI [[SPI_Registers#SPI_NEW_CNT|device number 3]], so it uses the [[SPI_Services|0x10142XXX]] SPI registers. It is initialized by issuing the following SPI commands:
 +
spi_select_reg(3, 0x67);
 +
spi_offset_mask(3, 0x26, 0x80, 0x80);
 +
spi_select_reg(3, 0x67);
 +
spi_offset_mask(3, 0x24, 0, 0x80);
 +
spi_select_reg(3, 0x67);
 +
spi_offset_mask(3, 0x25, 0x10, 0x3C);
  
 
=MIC Codec "cdc:MIC"=
 
=MIC Codec "cdc:MIC"=

Revision as of 15:19, 6 April 2016

HID Codec "cdc:HID"

Command Header Description
0x00010000 GetTouchData
0x00020000 Initialize
0x00030000 Finalize

Touchscreen

The touchscreen is the SPI device number 3, so it uses the 0x10142XXX SPI registers. It is initialized by issuing the following SPI commands:

spi_select_reg(3, 0x67);
spi_offset_mask(3, 0x26, 0x80, 0x80);
spi_select_reg(3, 0x67);
spi_offset_mask(3, 0x24, 0, 0x80);
spi_select_reg(3, 0x67);
spi_offset_mask(3, 0x25, 0x10, 0x3C);

MIC Codec "cdc:MIC"

Command Header Description

CSN Codec "cdc:CSN"

Command Header Description

DSP Codec "cdc:DSP"

Command Header Description

Legacy Codec "cdc:LGY"

Command Header Description

CHK Codec "cdc:CHK"

Command Header Description