|x||-||The index of the char to be retrieved from the scratch pad.|
This routine retrieves a char value from the scratch pad. An char takes up one byte in the scratch pad. The index x is the address of that byte.
The scratch pad is accessible by all processes and reflexes. It provides a convenient means for parameter passing between processes and reflexes and is more efficient than using semaphores. It is the user's responsibility to keep track of scratch pad locations and prevent overwriting of data.
The GP 1.0 and 2.0 modules have 56 bytes of scratch pad RAM. This allows storage of up to 56 char values.
c = aPad_ReadChar(31);
This would return a char value stored at location 31 in scratch pad RAM.