This file contains APIs and defines that are used by applications only on the host-side of the device.
// invoke the SysLink load callback remoteProcId = MultiProc_getId("DSP"); status = Ipc_control(remoteProcId, Ipc_CONTROLCMD_LOADCALLBACK, NULL); // invoke the SysLink start callback status = Ipc_control(remoteProcId, Ipc_CONTROLCMD_STARTCALLBACK, NULL); // IPC is established, app-specific code is here // invoke the SysLink stop callback status = Ipc_control(remoteProcId, Ipc_CONTROLCMD_STOPCALLBACK, NULL);
Go to the source code of this file.
Defines | |
#define | Ipc_CONTROLCMD_LOADCALLBACK (0xBABE0000) |
Control command ID for load callback. | |
#define | Ipc_CONTROLCMD_STARTCALLBACK (0xBABE0001) |
Control command ID for start callback. | |
#define | Ipc_CONTROLCMD_STOPCALLBACK (0xBABE0002) |
Control command ID for stop callback. | |
Functions | |
Int | Ipc_control (UInt16 procId, Int32 cmdId, Ptr arg) |
Perform IPC-related control operations with a specific slave. |
#define Ipc_CONTROLCMD_LOADCALLBACK (0xBABE0000) |
Control command ID for load callback.
arg
passed to Ipc_control() should be NULL.arg
passed to Ipc_control() must be the slave-side address of the _Ipc_ResetVector
symbol. This is often obtained by inspecting the slave-side executable's .map file.#define Ipc_CONTROLCMD_STARTCALLBACK (0xBABE0001) |
Control command ID for start callback.
arg
passed to Ipc_control() should be NULL.#define Ipc_CONTROLCMD_STOPCALLBACK (0xBABE0002) |
Control command ID for stop callback.
arg
passed to Ipc_control() should be NULL.arg
passed to Ipc_control() must be the slave-side address of the _Ipc_ResetVector
symbol. This is often obtained by inspecting the slave-side executable's .map file.Perform IPC-related control operations with a specific slave.
[in] | procId | Remote processor ID |
[in] | cmdId | Command ID |
[in] | arg | Argument. The value of arg depends on the command being sent in cmdId . |
cmdId
describes its usage of the arg
param.