Data structures describe data relating to a cluster object and are used as the building blocks of value lists.
To allocate a data structure on the frame, Define the structure variable as following:
struct MyStructType { int topScore;};
void SomeFunc(void)
{
// Frame allocation
MyStructType myStruct;
// Use the struct
myStruct.topScore = 297;
// Reclaimed when exiting scope };
The memory occupied by the structure is reclaimed when it exits its scope.
Use new to allocate data structures on the heap and delete to free them as following:
// Heap allocation MyStructType* myStruct = new MyStructType; // Use the structure through the pointer ... myStruct->topScore= 297; delete myStruct;
PT_CounterFreqStart (only USB4711A)
PT_CounterFreqRead (only USB4711A)
PT_CounterPulseStart (only USB4711A)