LibTiePie
0.7.1
Library for interfacing TiePie engineering instruments
|
Functions for handling arrays of pointers.
The function ScpGetData() uses a pointer to a buffer with pointers to buffers for the channel data. Not all programming/scripting languages can handle pointers to pointers properly. These functions can then be used to work around that issue.
buffers
.Functions | |
LibTiePiePointerArray_t | HlpPointerArrayNew (uint32_t dwLength) |
Create a new pointer array. More... | |
void | HlpPointerArraySet (LibTiePiePointerArray_t pArray, uint32_t dwIndex, void *pPointer) |
Set a pointer at a specified index in a specified pointer array. More... | |
void | HlpPointerArrayDelete (LibTiePiePointerArray_t pArray) |
Delete an existing pointer array. More... | |
LibTiePiePointerArray_t HlpPointerArrayNew | ( | uint32_t | dwLength | ) |
Create a new pointer array.
The pointer array is initialized with NULL
pointers.
[in] | dwLength | The requested length of the pointer array, 1 .. LIBTIEPIE_POINTER_ARRAY_MAX_LENGTH . |
INVALID_VALUE | The requested length is invalid. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
void HlpPointerArraySet | ( | LibTiePiePointerArray_t | pArray, |
uint32_t | dwIndex, | ||
void * | pPointer | ||
) |
Set a pointer at a specified index in a specified pointer array.
[in] | pArray | A pointer identifying the pointer array. |
[in] | dwIndex | The requested array index. |
[in] | pPointer | The pointer value to set. |
INVALID_INDEX | The array index is invalid. |
UNSUCCESSFUL | The pointer to the array is invalid. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
void HlpPointerArrayDelete | ( | LibTiePiePointerArray_t | pArray | ) |
Delete an existing pointer array.
[in] | pArray | A pointer identifying the pointer array. |
UNSUCCESSFUL | The pointer to the array is invalid. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |