![]() |
LibL6474-C-Library 1.0
Library Code documentation
|
#include <LibL6474.h>
Data Fields | |
| unsigned char | HIGHZ |
| unsigned char | DIR |
| unsigned char | NOTPERF_CMD |
| unsigned char | WRONG_CMD |
| unsigned char | UVLO |
| unsigned char | TH_WARN |
| unsigned char | TH_SD |
| unsigned char | OCD |
| unsigned char | ONGOING |
The L6474_Status_t enum describes the status register content of the stepper driver chip. It is reinterpreted so it can be naturally used in the code to get some of the error codes or state bits of the driver.
| unsigned char L6474_Status::DIR |
direction is clock wise or counter clock wise
| unsigned char L6474_Status::HIGHZ |
high impedance state active
| unsigned char L6474_Status::NOTPERF_CMD |
a command has not been performed
| unsigned char L6474_Status::OCD |
over current detection (short circuit)
| unsigned char L6474_Status::ONGOING |
movement is ongoing (pending)
| unsigned char L6474_Status::TH_SD |
thermal shutdown
| unsigned char L6474_Status::TH_WARN |
threshold warning
| unsigned char L6474_Status::UVLO |
under-voltage lock out
| unsigned char L6474_Status::WRONG_CMD |
a command was invalid