mpiSqNodeSegmentMemoryGet
Declaration
int32_t mpiSqNodeSegmentMemoryGet(MPISqNode sqNode,
int32_t segment, int32_t memoryStart, int32_t memoryCount, char *data);
Required Header: stdmpi.h
Change History: Added in the 03.03.00
Description
mpiSqNodeSegmentMemoryGet gets the current value of the specified slice memory registers from the sqNode.
sqNode | a handle to a SqNode object. |
---|---|
segment | the index of the slice / module attached to this SynqNet node. |
memoryStart | the first memory register to get. |
memoryCount | the number of memory registers to get. |
*data | a pointer to the array of memory registers that will be filled in by this function. |
Return Values | |
---|---|
MPIMessageOK |
Sample Code
Here is the code to read the first ten memory parameters on slice 1.
char memory[10];
mpiSqNodeSegementMemoryGet( sqNode, 1, 0, 10, memory );