3.2.3 Enumerations
enum mc_direction_t { MC_DIR_CW, MC_DIR_CCW }
Describes the motor direction.
enum mc_fault_flags_t { MC_FAULT_STALL_MASK = (1 << 0), MC_FAULT_OVERCURRENT_MASK = (1 << 1), MC_FAULT_UNDERVOLTAGE_MASK = (1 << 2), MC_FAULT_OVERHEAT_MASK = (1 << 3), MC_FAULT_OVERVOLTAGE_MASK = (1 << 4), MC_FAULT_HALL_MASK = (1 << 5) }
Describes the fault events.
enum mc_states_t { IDLE, RUNNING, FAULT }
Describes the motor states.
enum mc_hall_error_t { HALL_NO_ERROR = 0x00, HALL_ERROR_TOO_EARLY = 0x01, HALL_ERROR_TOO_LATE = 0x02, HALL_ERROR_DISCONNECTED = 0x04, HALL_ERROR_WRONG_PATTERN = 0x08, HALL_ERROR_MOTOR_STOPPED = 0x10 }
Describes the Hall effect sensor error codes.