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

Function DSP_ConvertProcessAddressFromDspDram

libctru/source/services/dsp.c:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280Result DSP_ConvertProcessAddressFromDspDram(u32 dsp_address, u32* arm_address)
281{
282 Result ret = 0;
283 u32* cmdbuf = getThreadCommandBuffer();
284 cmdbuf[0] = IPC_MakeHeader(0xC,1,0);
285 cmdbuf[1] = dsp_address;
286 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
287 *arm_address = cmdbuf[2];
288 return cmdbuf[1];
289}
290
291Result DSP_RecvData(u16 regNo, u16* value)
292{

Callers 1

ndspInitializeFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected