ClearCore Library
|
ClearCore motor-connector manager.
This class manages shared settings for the MotorDriver connectors.
For more detailed information on the ClearCore Motor Control and Motion Generation systems, check out the Motor Control System and Step and Direction Control informational pages.
ClearCore motor-connector manager. More...
#include <MotorManager.h>
Public Types | |
enum | MotorClockRates { CLOCK_RATE_LOW , CLOCK_RATE_NORMAL , CLOCK_RATE_HIGH } |
enum | MotorPair { MOTOR_M0M1 = 0 , MOTOR_M2M3 = 1 , NUM_MOTOR_PAIRS = 2 , MOTOR_ALL = NUM_MOTOR_PAIRS } |
Public Member Functions | |
bool | MotorInputClocking (MotorClockRates newRate) |
Sets the output step rate for the motor step generators. | |
bool | MotorModeSet (MotorPair motorPair, Connector::ConnectorModes newMode) |
Sets the operational mode for the specified MotorDriver connectors. | |
Indicates a pair of MotorDriver Connectors.
Enumerator | |
---|---|
MOTOR_M0M1 | MotorDriver Connectors M-0 and M-1. |
MOTOR_M2M3 | MotorDriver Connectors M-2 and M-3. |
NUM_MOTOR_PAIRS | The total number of pairs of MotorDriver Connectors. |
MOTOR_ALL | All MotorDriver Connectors. |
bool ClearCore::MotorManager::MotorInputClocking | ( | MotorClockRates | newRate | ) |
Sets the output step rate for the motor step generators.
Sets the step rate for the MotorDriver connectors as a group. They cannot be individually set.
[in] | newRate | Step rate to be set |
bool ClearCore::MotorManager::MotorModeSet | ( | MotorPair | motorPair, |
Connector::ConnectorModes | newMode | ||
) |
Sets the operational mode for the specified MotorDriver connectors.
Sets the mode for the specified MotorDriver connectors in tandem. They cannot be individually set.
[in] | motorPair | Connectors to be set to specified mode. |
[in] | newMode | Connector modes to be set. The valid modes for the MotorDriver connectors are: |