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

Function DSP_GetSemaphoreHandle

libctru/source/services/dsp.c:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174Result DSP_GetSemaphoreHandle(Handle* semaphore)
175{
176 Result ret = 0;
177 u32* cmdbuf = getThreadCommandBuffer();
178 cmdbuf[0] = IPC_MakeHeader(0x16,0,0);
179 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
180 *semaphore = cmdbuf[3];
181 return cmdbuf[1];
182}
183
184Result DSP_LoadComponent(const void* component, u32 size, u16 prog_mask, u16 data_mask, bool* is_loaded)
185{

Callers 1

ndspInitializeFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected