[][src]Crate stspin220

STSPIN220 Driver

Platform-agnostic driver library for the STSPIN220 stepper motor driver. This crate is a specialized facade for the Step/Dir library. Please consider using Step/Dir directly, as it provides drivers for more stepper motor drivers, as well as an interface to abstract over them.

See Step/Dir for more documentation and usage examples.

Modules

drivers

Parent module for all driver implementations

embedded_hal

A Hardware Abstraction Layer (HAL) for embedded systems

embedded_time

embedded-time provides a comprehensive library of Duration and Rate types as well as a Clock abstractions for hardware timers/clocks and the associated Instant type for in embedded systems.

step_mode

Types related to working with a driver's microstepping mode

traits

Traits that can be implemented by Step/Dir drivers

Structs

Driver

Abstract interface to stepper motor drivers

STSPIN220

The STSPIN220 driver API

SetDirectionFuture

A "future" that can be polled to complete a Driver::set_direction call

SetStepModeFuture

A "future" that can be polled to complete a Driver::set_step_mode call

StepFuture

A "future" that can be polled to complete a Driver::step call

Enums

Direction

Defines the direction in which to rotate the motor

Error

An error that can occur while using this API