目录

Reset

Function Description

Releases resources, initializes variables such as eventId, and restores to the initial state of TPipe.

Function Prototype

__aicore__ inline void Reset()

Supported Models

Kirin 9020 series processors

Kirin 9030 series processors

Kirin X90 series processors

Precautions

None

Return Value

None

Calling Example

AscendC::TPipe pipe; // TPipe object
AscendC::TQue<AscendC::TPosition::VECOUT, 1> que; // Output the management objects of the data queue. The value of QuePosition is VECOUT.
uint8_t num = 1;
uint32_t len = 192 * 1024;
for (int i = 0; i < 2; i++) {
    pipe.InitBuffer(que, num, len);
    // ... // process
    pipe.Reset();
}