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

Function DSP_SetSemaphore

libctru/source/services/dsp.c:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154Result DSP_SetSemaphore(u16 value)
155{
156 Result ret = 0;
157 u32* cmdbuf = getThreadCommandBuffer();
158 cmdbuf[0] = IPC_MakeHeader(0x7,1,0);
159 cmdbuf[1] = value;
160 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
161 return cmdbuf[1];
162}
163
164Result DSP_SetSemaphoreMask(u16 mask)
165{

Callers 1

ndspInitializeFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected