| aPad_ReadChar | Index |
Definition:
Parameters:
| x | - | The index of the char to be retrieved from the scratch pad. |
Return Value:
Description:
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.
Example:
c = aPad_ReadChar(31);
This would return a char value stored at location 31 in scratch pad RAM.
Related: