This routine reads a 2-byte parameter from a motion control port. It may only be used with motion control ports that have 2-byte read access. Several of the other motion control functions use macros that reference this routine. Use of this routine requires low-level knowledge of TEA and IO port conventions. It is only recommended for experienced users. See the Moto 1.0 Port Documentation for more details.
This would set variable n to the setpoint for motion control channel 0.
aMotion_SetConfig(0, aOffsetMotionLatency, 5);
This would set the back-EMF latency constant for motion control channel 0 to 5. This is equivlent to 0.5ms.