SetCurAddr
Function Usage
Sets the allocated address of the customized TBufPool. For example, if 32 KB buffer space is allocated during initialization and 8 KB buffer is allocated to a TQue, this API needs to be called to ensure that the subsequent memory blocks are allocated from 8 KB.
Prototype
1 | __aicore__ inline void SetCurAddr(uint32_t curAddr) |
Parameter |
Input/Output |
Meaning |
|---|---|---|
curAddr |
Input |
Allocated memory address. |
Availability
Precautions
None
Returns
None
Example
For details, see Example.
Parent topic: Customized TBufPool