Data Structure

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; 

Structure supported by PCM-3724:

Port I/O functions

PT_ReadPortByte

PT_WritePortByte

High-speed Functions

PT_CheckEvent

PT_EnableEvent