MCPcopy Create free account
hub / github.com/devkitPro/libctru / DSP_WriteProcessPipe

Function DSP_WriteProcessPipe

libctru/source/services/dsp.c:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267Result DSP_WriteProcessPipe(u32 channel, const void* buffer, u32 length)
268{
269 Result ret = 0;
270 u32* cmdbuf = getThreadCommandBuffer();
271 cmdbuf[0] = IPC_MakeHeader(0xD,2,2);
272 cmdbuf[1] = channel;
273 cmdbuf[2] = length;
274 cmdbuf[3] = IPC_Desc_StaticBuffer(length,1);
275 cmdbuf[4] = (u32)buffer;
276 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
277 return cmdbuf[1];
278}
279
280Result DSP_ConvertProcessAddressFromDspDram(u32 dsp_address, u32* arm_address)
281{

Callers 2

ndspInitializeFunction · 0.85
ndspFinalizeFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_StaticBufferFunction · 0.85

Tested by

no test coverage detected