Provides the implementation for the basic C pointer buffer types. More...
Go to the source code of this file.
Macros | |
#define | MCUXCLBUFFER_INIT_PLAIN_RO_IMPL(_name, _info, _ptr, _size) |
Initialize an input buffer with plain CPU handling. | |
#define | MCUXCLBUFFER_INIT_PLAIN_RW_IMPL(_name, _info, _ptr, _size) |
Initialize an input/output buffer with plain CPU handling. | |
#define | MCUXCLBUFFER_INIT_DMA_RO_IMPL(_name, _info, _ptr, _size) |
DMA handling is not supported. | |
#define | MCUXCLBUFFER_INIT_DMA_RW_IMPL(_name, _info, _ptr, _size) |
DMA handling is not supported. | |
#define | MCUXCLBUFFER_INIT_CUSTOM_IMPL(_name, _handler, _info, _spec, _ptr, _size) |
Usage of custom handler is not supported. | |
#define | MCUXCLBUFFER_UPDATE_IMPL(_name, _offset) |
Update the buffer pointer with the given offset. | |
#define | MCUXCLBUFFER_DERIVE_RO_IMPL(_name, _original, _offset) |
Derive a new input buffer object from an existing one (updated with the given offset). | |
#define | MCUXCLBUFFER_DERIVE_RW_IMPL(_name, _original, _offset) |
Derive a new input/output buffer object from an existing one (updated with the given offset). | |
#define | MCUXCLBUFFER_SET_IMPL(_name, _ptr, _size) |
Update the buffer pointer the a new memory location. | |
#define | MCUXCLBUFFER_GET_IMPL(_name) |
Get the pointer of the buffer. | |
#define | MCUXCLBUFFER_IS_NULL_IMPL(_name) |
Check the buffer pointer against NULL. | |
Typedefs | |
typedef const uint8_t * | mcuxCl_InputBuffer_t |
Input buffer type. | |
typedef uint8_t * | mcuxCl_Buffer_t |
Input/output buffer type. | |
Functions | |
mcuxClBuffer_Status_t | mcuxClBuffer_import (mcuxCl_InputBuffer_t bufSrc, uint32_t offset, uint8_t *pDst, uint32_t byteLength) |
Perform a read from the buffer. | |
mcuxClBuffer_Status_t | mcuxClBuffer_export (mcuxCl_Buffer_t bufDst, uint32_t offset, const uint8_t *pSrc, uint32_t byteLength) |
Perform a write to the buffer. | |
Provides the implementation for the basic C pointer buffer types.
mcuxClBuffer_Status_t mcuxClBuffer_import | ( | mcuxCl_InputBuffer_t | bufSrc, |
uint32_t | offset, | ||
uint8_t * | pDst, | ||
uint32_t | byteLength | ||
) |
Perform a read from the buffer.
bufSrc | Input buffer from which the data shall be read. |
offset | Offset into the buffer at which the read operation shall start. |
pDst | Pointer to the memory location where the data will be stored. |
byteLength | Amount of bytes that will be read. |
mcuxClBuffer_Status_t mcuxClBuffer_export | ( | mcuxCl_Buffer_t | bufDst, |
uint32_t | offset, | ||
const uint8_t * | pSrc, | ||
uint32_t | byteLength | ||
) |
Perform a write to the buffer.
bufDst | Output buffer to which the data shall be written. |
offset | Offset into the buffer at which the write operation shall start. |
pSrc | Pointer to the memory location from where the data will be read. |
byteLength | Amount of bytes that will be written. |