msptiActivityRegisterCallbacks
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas A3 Training Series Product |
Yes |
Atlas A2 Training Series Product/Atlas 800I A2 Inference Product |
Yes |
Atlas 200/500 A2 Inference Product |
Yes |
Atlas Inference Series Product |
x |
Atlas Training Series Product |
x |
Function Description
Registers callback functions with MSPTI for activity buffer processing. When the activity buffer is insufficient, the funcBufferRequested function is called to allocate memory. When the activity buffer is full, the funcBufferCompleted function is called to notify the user to consume activity data and release the activity buffer.
Prototype
1 | msptiResult msptiActivityRegisterCallbacks(msptiBuffersCallbackRequestFunc funcBufferRequested, msptiBuffersCallbackCompleteFunc funcBufferCompleted) |
Options
Option |
Input/Output |
Description |
|---|---|---|
funcBufferRequested |
Input |
Defines the activity buffer allocation function. |
funcBufferCompleted |
Input |
Activity buffer data consumption and memory release function. |
Return Value
If MSPTI_SUCCESS is returned, the operation is successful. If MSPTI_ERROR_INVALID_PARAMETER is returned when funcBufferRequested or funcBufferCompleted is NULL, the operation fails.