long mpiMotorType(MPIMotor motor, MPIMotorType *type)
MotorType writes a Motor's (motor) type into the structure pointed to by type.