Read memory information.
Read the current pool size and dataspace size. Optionally compact the dataspace before returning the information. Running programs have a maximum of 32k bytes of memory available. The amount of free RAM can be calculated by subtracting the value returned by this function from POOL_MAX_SIZE.
- Warning
- This function requires the enhanced NBC/NXC firmware version 1.28+.
- Parameters
-
Compact | A boolean value indicating whether to compact the dataspace or not. |
PoolSize | The current pool size. |
DataspaceSize | The current dataspace size. |
- Returns
- The function call result. It will be NO_ERR if the compact operation is not performed. Otherwise it will be the result of the compact operation.
- Examples:
- ex_getmemoryinfo.nxc.