MPI 04.00 Reference >> mpiMotor

mpiMotorMemory

Declaration

mpiMotorMemory(MPIMotor           motor,
               MFWMotor**         memory,
               MFWMotorData**     dataMemory
               MFWMotorConfig**   configMemory);

Required Header: firmware.h
Change History: Modified in 04.00.

Description

mpiMotorMemory writes the address of the MFWMotor object corresponding to the specified MPIMotor object to the contents of memory, the address of the corresponding MFWMotorData object to dataMemory, and the address of the corresponding MFWMotorConfig object to configMemory. These addresses (or addresses calculated from them) can be passed as the src argument to mpiMotorMemoryGet(...), and also as the dst argument to mpiMotorMemorySet(...).

Motor A handle to the Motor object.
memory This address pointer is assigned to the Motor's memory address unless memory is NULL.
dataMemory This address pointer is assigned to the Motor's data memory address unless dataMemory is NULL.
configMemory This address pointer is assigned to the Motor’s config memory unless configMemory is NULL.
Return Values
MPIMessageOK

See Also

mpiMotorMemoryGet | mpiMotorMemorySet