msptiBuffersCallbackRequestFunc
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 the callback function with MSPTI to allocate the storage space of the activity buffer. When using the Activity API, a user (subscriber) needs to customize this function and register it with MSPTI. When the storage space of the activity buffer is insufficient, MSPTI calls this function to allocate new storage space.
Prototype
1 | typedef void(*msptiBuffersCallbackRequestFunc)(uint8_t **buffer, size_t *size, size_t *maxNumRecords) |
Options
Option |
Input/Output |
Description |
|---|---|---|
buffer |
Output |
Sets the address of the activity buffer. |
size |
Output |
Sets the size of the activity buffer. (You are advised to allocate at least 2 MB memory.) |
maxNumRecords |
Output |
Sets the number of records in the activity buffer. The value is generally 0. |
Return Value
None.