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

Function DSP_SetSemaphoreMask

libctru/source/services/dsp.c:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164Result DSP_SetSemaphoreMask(u16 mask)
165{
166 Result ret = 0;
167 u32* cmdbuf = getThreadCommandBuffer();
168 cmdbuf[0] = IPC_MakeHeader(0x17,1,0);
169 cmdbuf[1] = mask;
170 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
171 return cmdbuf[1];
172}
173
174Result DSP_GetSemaphoreHandle(Handle* semaphore)
175{

Callers 1

ndspInitializeFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected