HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
esp32_tmc9660_test_config.hpp File Reference

Hardware configuration for TMC9660 driver on ESP32-C6. More...

#include <cstdint>
Include dependency graph for esp32_tmc9660_test_config.hpp:

Go to the source code of this file.

Classes

struct  TMC9660_TestConfig::SPIPins
 SPI Pin Configuration for ESP32-C6. More...
 
struct  TMC9660_TestConfig::UARTPins
 UART Pin Configuration for ESP32-C6. More...
 
struct  TMC9660_TestConfig::ControlPins
 Control GPIO Pins for TMC9660. More...
 
struct  TMC9660_TestConfig::SPIParams
 SPI Communication Parameters. More...
 
struct  TMC9660_TestConfig::UARTParams
 UART Communication Parameters. More...
 
struct  TMC9660_TestConfig::ControllerSpecs
 Motor Controller Specifications. More...
 
struct  TMC9660_TestConfig::SupplyVoltage
 Supply Voltage Specifications (volts) More...
 
struct  TMC9660_TestConfig::Temperature
 Temperature Specifications (celsius) More...
 
struct  TMC9660_TestConfig::Timing
 Timing Parameters. More...
 
struct  TMC9660_TestConfig::Diagnostics
 Diagnostic Thresholds. More...
 
struct  TMC9660_TestConfig::TestConfig
 Test Configuration. More...
 
struct  TMC9660_TestConfig::AppConfig
 Application-specific Configuration. More...
 

Namespaces

namespace  TMC9660_TestConfig
 

Macros

#define ESP32_TMC9660_ENABLE_DETAILED_LOGGING   0
 Enable detailed SPI/UART transaction logging.
 
#define TMC9660_VALIDATE_GPIO(pin)    static_assert((pin) >= 0 && (pin) < 30, "Invalid GPIO pin number for ESP32-C6")
 Hardware configuration validation.
 

Detailed Description

Hardware configuration for TMC9660 driver on ESP32-C6.

This file contains the actual hardware configuration that is used by the HAL and example applications. Modify these values to match your hardware setup.

Macro Definition Documentation

◆ ESP32_TMC9660_ENABLE_DETAILED_LOGGING

#define ESP32_TMC9660_ENABLE_DETAILED_LOGGING   0

Enable detailed SPI/UART transaction logging.

When enabled (set to 1), the Esp32Tmc9660SpiBus/Esp32Tmc9660UartBus will log detailed information about each transaction including:

  • TX/RX frame bytes
  • TMCL command/response parsing
  • CRC verification results

When disabled (set to 0), only basic error logging is performed.

Default: 0 (disabled) - Set to 1 to enable for debugging

◆ TMC9660_VALIDATE_GPIO

#define TMC9660_VALIDATE_GPIO ( pin)     static_assert((pin) >= 0 && (pin) < 30, "Invalid GPIO pin number for ESP32-C6")

Hardware configuration validation.

Compile-time checks to ensure configuration is valid.

Helper macro for compile-time GPIO pin validation