How stm32duino/x-nucleo-ihm01a1 works
This Arduino library exposes a stepper-motor interface backed by the L6474 driver on the X-NUCLEO-IHM01A1 board. The principal workflow is an application issuing motion or configuration operations through the motor API; the driver handles device commands and communicates over SPI. The README also documents a one-motor positioning example. Source excerpts show the API wrappers and SPI transfer implementation; details of the example’s calls and some internal behavior were not sampled.
Main entry points: L6474.cpp Command and motion driver · L6474_def.h Register and device types · L6474.h L6474 component · motor_def.h Motor types and vtable
Components 11
Motor API
- Stepper interface
src/StepperMotor.h - L6474 component
src/L6474.h - Generic component interface
src/Component.h
L6474 Driver
- Command and motion driver
src/L6474.cpp
Configuration and Types
- Register and device types
src/L6474_def.h - Device defaults
src/L6474_config.h - Motor types and vtable
src/motor_def.h - Component types
src/component_def.h
Other components
- Arduino application
- SPI instance
- Stepper motor board
Connections 10
- Arduino application → Stepper interface: issues motion commands
README.md - L6474 component → Stepper interface: implements
src/L6474.h - L6474 component → Command and motion driver: calls driver functions
src/L6474.h - Command and motion driver → SPI instance: transfers commands
- Command and motion driver → Stepper motor board: controls motor
README.md - Command and motion driver → Register and device types: uses device definitions
src/L6474.cpp - Command and motion driver → Device defaults: loads defaults
src/L6474.cpp - Register and device types → Device defaults: references configuration
src/L6474_def.h - Register and device types → Motor types and vtable: references motor types
src/L6474_def.h - Motor types and vtable → Component types: references component types
src/motor_def.h