USB services: Difference between revisions
No edit summary |
Misson20000 (talk | contribs) →PostBufferAsync: Add note about caching |
||
Line 307: | Line 307: | ||
Takes an u32 ('''size''') and an u64 ('''buffer'''). Returns an output u32 ('''urbId'''). The output urbId can then be used while parsing the output of [[#GetReportData]], after waiting for the CompletionEvent to be signalled. | Takes an u32 ('''size''') and an u64 ('''buffer'''). Returns an output u32 ('''urbId'''). The output urbId can then be used while parsing the output of [[#GetReportData]], after waiting for the CompletionEvent to be signalled. | ||
The buffer address must be 0x1000-byte aligned. The input size doesn't matter. | The buffer address must be 0x1000-byte aligned. The input size doesn't matter. It helps to use svcSetMemoryAttribute to turn off caching on the buffer. | ||
Used for data-transfer with input/output endpoints. | Used for data-transfer with input/output endpoints. |