Microchip_Examples/ClearPathModeExamples/ClearPath-SD_Series/MotorStatusRegister/MotorStatusRegister.cpp
char *ReadyStateString(MotorDriver::MotorReadyStates readyState) {
    switch (readyState) {
        case MotorDriver::MOTOR_DISABLED:
            return (char *)"Disabled";
        case MotorDriver::MOTOR_ENABLING:
            return (char *)"Enabling";
        case MotorDriver::MOTOR_FAULTED:
            return (char *)"Faulted";
        case MotorDriver::MOTOR_READY:
            return (char *)"Ready";
        case MotorDriver::MOTOR_MOVING:
            return (char *)"Moving";
        default:
            // Something has gone wrong if this is printed
            return (char *)"???";
    }
}
/*------------------------------------------------------------------------------
 * ReadyStateString
 *
 *    Converts the state of a motor status register bit into a user-readable
 *    format so it may be printed to a serial port.
 *
 * Parameters:
 *    MotorReadyStates readyState  - The current state of the ReadyState bit
 *
 * Returns: Text describing the state of the status bit.
 */
ReadyStateString
Converts the state of a motor status register bit into a user-readable
format so it may be printed to a serial port.

MotorReadyStates readyState  - The current state of the ReadyState bit

Text describing the state of the status bit.
ReadyStateString Converts the state of a motor status register bit into a user - readable format so it may be printed to a serial port . MotorReadyStates readyState - The current state of the ReadyState bit Text describing the state of the status bit .
char *ReadyStateString(MotorDriver::MotorReadyStates readyState) {
    switch (readyState) {
        case MotorDriver::MOTOR_DISABLED:
            return (char *)"Disabled";
        case MotorDriver::MOTOR_ENABLING:
            return (char *)"Enabling";
        case MotorDriver::MOTOR_FAULTED:
            return (char *)"Faulted";
        case MotorDriver::MOTOR_READY:
            return (char *)"Ready";
        case MotorDriver::MOTOR_MOVING:
            return (char *)"Moving";
        default:
            return (char *)"???";
    }
}
char * ReadyStateString ( MotorDriver :: MotorReadyStates readyState ) { switch ( readyState ) { case MotorDriver :: MOTOR_DISABLED : return ( char * ) " " ; case MotorDriver :: MOTOR_ENABLING : return ( char * ) " " ; case MotorDriver :: MOTOR_FAULTED : return ( char * ) " " ; case MotorDriver :: MOTOR_READY : return ( char * ) " " ; case MotorDriver :: MOTOR_MOVING : return ( char * ) " " ; default : return ( char * ) " " ; } }
ReadyStateString
    Converts the state of a motor status register bit into a user-readable
    format so it may be printed to a serial port.
ReadyStateString Converts the state of a motor status register bit into a user - readable format so it may be printed to a serial port .
// Something has gone wrong if this is printed