#include <otMicrostepShield.h>
Inheritance diagram for otMicrostepShield:

Public Types | |
| typedef enum otMicrostepShield::EncoderSelection | EncoderSelection |
| typedef enum otMicrostepShield::InputSelection | InputSelection |
| typedef enum otMicrostepShield::ClockSignal | ClockSignal |
| enum | EncoderSelection { ENCODER_OFF = 0x00, ENCODER_0 = 0x10, ENCODER_1 = 0x20, ENCODER_2 = 0x40, ENCODER_3 = 0x80 } |
| enum | InputSelection { INPUT_1 = 8, INPUT_2 = 9, INPUT_3 = 10, INPUT_4 = 11 } |
| enum | ClockSignal { SEL_0 = 0, SEL_1 = 4, SEL_2 = 8, SEL_3 = 12 } |
Public Member Functions | |
| otMicrostepShield () | |
| void | init (otL6470 *drv, bool track=false, U8 addressIndex=0) |
| void | driverSelect (U8 id) |
| void | boardOff () |
| void | encoderSelection (EncoderSelection selection) |
| U8 | input (InputSelection input) |
| void | setClockSelection (ClockSignal sx) |
| void | move (S32 step0, S32 step1) |
| void | move (U8 dir0, U32 step0, U8 dir1, U32 step1) |
| bool | readyMove (bool wait=true) |
| bool | ready (U8 drv, bool wait=true) |
| void | motorOff () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create the class. |
|
|
Disable SPI selection for this board. driverSelect can select again it. |
|
|
Select the driver to operate
|
|
|
Set which encoder channel will be used.
|
|
||||||||||||||||
|
Set the base address
|
|
|
Read a selected input from available.
|
|
|
Stop all movements action and a put the motors off. Fuction requested before set a new motor configuration. |
|
||||||||||||||||||||
|
Start a positioning on all axys.
|
|
||||||||||||
|
Start a positioning on all axys.
|
|
||||||||||||
|
Check if the postioning on a specified axys is done.
|
|
|
Check if a positioning is done on all axys
|
|
|
For arbitrary rate generation select which bit will be used.
|