I2C:ReadDeviceRaw: Difference between revisions
Jump to navigation
Jump to search
TimmSkiller (talk | contribs) Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x0015|1|0}} {{IPC/RequestEntry|u8, device ID}} {{IPC/RequestEnd}} =Request Static Buffers= {{IPC/RequestStaticBuffers}} {{#vardefine:ipc_offset|0}} {{IPC/TranslateStaticBuffer|Output buffer pointer|0}} {{IPC/RequestEnd}} =Response= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestHeader|0x0015|1|2}} {{IPC/RequestEntry|Result code}} {{IPC/TranslateStaticBuffer|Output buffer pointer|0}} {{IPC/RequestEnd}} =Descrip..." |
TimmSkiller (talk | contribs) No edit summary |
||
| Line 23: | Line 23: | ||
=Description= | =Description= | ||
Reads a buffer from the given I2C device raw, without selecting a specific register first. | Reads a buffer from the given I2C device raw, without selecting a specific register first. | ||
The maximum output buffer size is 0x200 for the New3DS i2c-sysmodule, and 0x20 for the Old3DS version. | |||
This is similar to [[I2C:ReadDeviceRaw8]], except this allows for reading a buffer instead of a single value. | This is similar to [[I2C:ReadDeviceRaw8]], except this allows for reading a buffer instead of a single value. | ||
Latest revision as of 16:43, 28 May 2026
Request
| Index Word | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 |
| ||||||||
| 1 | u8, device ID |
Request Static Buffers
The handler for this IPC command expects the following 0x100-bytes after the beginning of the above command buffer:
| Index Word | Description |
|---|---|
| 0 | Descriptor for static buffer (id 0) |
| 1 | Output buffer pointer |
Response
| Index Word | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 |
| ||||||||
| 1 | Result code | ||||||||
| 2 | Descriptor for static buffer (id 0) | ||||||||
| 3 | Output buffer pointer |
Description
Reads a buffer from the given I2C device raw, without selecting a specific register first.
The maximum output buffer size is 0x200 for the New3DS i2c-sysmodule, and 0x20 for the Old3DS version.
This is similar to I2C:ReadDeviceRaw8, except this allows for reading a buffer instead of a single value.