![]() |
![]() |
#include <xdc/std.h>
#include <ti/sdo/dmai/Dmai.h>
#include <ti/sdo/dmai/Buffer.h>
Go to the source code of this file.
Typedefs | |
typedef struct BufTab_Object * | BufTab_Handle |
Handle through which to reference a BufTab. | |
Functions | |
BufTab_Handle | BufTab_create (Int numBufs, Int32 size, Buffer_Attrs *attrs) |
Creates a BufTab and the buffers belonging to it. | |
Int | BufTab_delete (BufTab_Handle hBufTab) |
Deletes a BufTab. | |
Int | BufTab_chunk (BufTab_Handle hBufTab, Int numBufs, Int32 bufSize) |
Chunk a BufTab in to smaller buffer sizes. This will not change the original allocation during creation, it merely tries to fit many smaller Buffers inside the already allocated Buffers. | |
Int | BufTab_collapse (BufTab_Handle hBufTab) |
Restore the BufTab to the state before BufTab_chunk was called on it. Note that this will undo any calls to BufTab_expand after the BufTab_chunk call. | |
Int | BufTab_expand (BufTab_Handle hBufTab, Int numBufs) |
Expand a BufTab with more buffers. | |
Buffer_Handle | BufTab_getBuf (BufTab_Handle hBufTab, Int bufIdx) |
Return a buffer with a certain index in the BufTab. | |
Int | BufTab_getNumBufs (BufTab_Handle hBufTab) |
Get the number of Buffers in a BufTab. | |
Void | BufTab_print (BufTab_Handle hBufTab) |
Print information about the buffers in the BufTab. | |
Void | BufTab_freeAll (BufTab_Handle hBufTab) |
Mark all buffers in a BufTab as free. | |
Void | BufTab_freeBuf (Buffer_Handle hBuf) |
Mark a Buffer as free in a BufTab. | |
Buffer_Handle | BufTab_getFreeBuf (BufTab_Handle hBufTab) |
Return a free buffer from the BufTab and mark it as used. |