|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Comprehensive SPI Daisy Chain testing suite for TMC51x0. More...
#include "tmc51x0.hpp"#include "test_config/esp32_tmc51x0_bus.hpp"#include "test_config/esp32_tmc51x0_test_config.hpp"#include "test_config/TestFramework.h"#include <memory>#include <vector>Classes | |
| struct | TestDriverHandle |
| Test driver handle containing SPI interface and driver instance. More... | |
Functions | |
| bool | test_daisy_chain_setup () noexcept |
| Test SPI daisy chain setup and initialization. | |
| bool | test_daisy_chain_position_management () noexcept |
| Test daisy chain position management and addressing. | |
| bool | test_multi_motor_coordination () noexcept |
| Test multi-motor coordination in daisy chain configuration. | |
| std::unique_ptr< TestDriverHandle > | create_daisy_chain_drivers () noexcept |
| Create and initialize daisy chain driver instances. | |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "SPI_DaisyChain_Test" |
| static TestResults | g_test_results |
| static constexpr tmc51x0_test_config::TestRigType | SELECTED_TEST_RIG |
| static constexpr bool | ENABLE_DAISY_CHAIN_SETUP_TESTS = true |
| static constexpr bool | ENABLE_POSITION_MANAGEMENT_TESTS = true |
| static constexpr bool | ENABLE_MULTI_MOTOR_COORDINATION_TESTS = true |
| static constexpr uint8_t | TEST_CHAIN_LENGTH = 2 |
| static constexpr uint8_t | TEST_IRUN = 20 |
| static constexpr uint8_t | TEST_IHOLD = 10 |
| static constexpr uint8_t | TEST_GLOBAL_SCALER = 32 |
| static constexpr uint8_t | TEST_TOFF = 5 |
| static constexpr tmc51x0::MicrostepResolution | TEST_MRES = tmc51x0::MicrostepResolution::MRES_256 |
Comprehensive SPI Daisy Chain testing suite for TMC51x0.
Supports 1 or more TMC51x0 drivers. Set TEST_CHAIN_LENGTH to match your hardware (default: 2). With TEST_CHAIN_LENGTH=1, standard single-driver SPI operation is tested (position 0, chain length 1).
This file contains comprehensive testing for TMC51x0 SPI daisy chain features:
Hardware Requirements:
Pin Configuration (modify as needed):
Daisy-Chain Wiring:
| void app_main | ( | void | ) |
|
noexcept |
Create and initialize daisy chain driver instances.
Creates a shared SPI interface and multiple driver instances configured for daisy chain operation. Each driver is assigned a unique chain position.
|
noexcept |
Test daisy chain position management and addressing.
|
noexcept |
Test SPI daisy chain setup and initialization.
|
noexcept |
Test multi-motor coordination in daisy chain configuration.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |