Applies To
GC5050, GX5050 GX5150
Purpose
Returns the specified memory bank density.
Syntax
DioGetMemoryBankSize (nHandle, nBank, pnDensity, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Master or Slave board handle. |
nBank |
SHORT |
Bank numbers are as follow: GX5150: 0-7: Data memory SIMMs, connectors SIMM1 through SIMM8. 8: Control memory, connector SIMM9. GC5050, GX5050: 0: Data memory SIMMs |
pnDensity |
PSHORT |
Bank density value are as follow: 0. 256K by 32 (8MB). 1. 1M by 32 (32MB). 2. 2M by 32 (64MB). 3. 4M by 32 (128MB). 0xF Memory not installed. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Example
The following example retrieves bank 0 density:
SHORT nStatus, nDensity;
DioGetMemoryBankSize (nHandle, 0, &nDensity, &nStatus);
See Also