跳转至

msptiBuffersCallbackCompleteFunc

Supported Products

[!NOTE]

For details about Ascend product models, see Ascend Product Models.

Product Type Supported
Ascend 950 products √
Atlas A3 training products/Atlas A3 inference products √
Atlas A2 training products/Atlas A2 inference products √
Atlas 200I/500 A2 inference products √
Atlas inference products ×
Atlas training products ×

Description

Registers the callback function with msPTI to release the data in 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 full, msPTI calls this function to notify the user to consume data in the activity buffer and release the memory space.

Function Prototype

typedef void(*msptiBuffersCallbackCompleteFunc)(uint8_t *buffer, size_t size, size_t validSize)

Parameter Description

Table 2 Parameter Description

Address of the Size of the Size of the data recorded by the

Parameter Name

Input/Output

Description

buffer

Input

.

Activity Buffer.

size

Input

.

Activity Buffer, in bytes.

validSize

Input

Activity Buffer, in bytes.

Returns

None