|
MP6602 library
|
#include <Arduino.h>#include <SPI.h>Go to the source code of this file.
Classes | |
| class | MP6602SPI |
| class | MP6602 |
Enumerations | |
| enum class | MP6602RegAddr : uint8_t { CTRL = 0x00 , CTRL2 = 0x01 , ISET = 0x02 , STALL = 0x03 , BEMF = 0x04 , TSTP = 0x05 , OCP = 0x06 , FAULT = 0x07 } |
| enum class | MP6602StepMode : uint8_t { MicroStep1 = 0b000 , MicroStep2 = 0b001 , MicroStep4 = 0b010 , MicroStep8 = 0b011 , MicroStep16 = 0b100 , MicroStep32 = 0b101 } |
| Possible arguments to setStepMode(). More... | |
| enum class | MP6602FaultBit : uint8_t { STALL = 9 , OLA = 8 , OLB = 7 , OCP = 6 , OTS = 5 , OTW = 4 , OVP = 3 , VINUV = 2 , VCCUV = 1 , FLT = 0 } |
| enum class | MP6602OCPBit : uint8_t { OCPAH = 3 , OCPAL = 2 , OCPBH = 1 , OCPBL = 0 } |
This is the main header file for the MP6602 library, a library for controlling the MP6602 stepper motor driver.
For more information about this library, see:
https://github.com/pololu/mp6602-arduino
That is the main repository for this library.
Definition in file MP6602.h.
|
strong |
Bits that are set in the return value of readFault() to indicate warning and fault conditions.
See the MP6602 datasheet for detailed descriptions of these conditions.
|
strong |
Bits that are set in the return value of readOCP() to indicate over-current protection events.
See the MP6602 datasheet for detailed descriptions of these conditions.
|
strong |
|
strong |