HF-AS5047U Driver  0.1.0-dev
HF-AS5047U C++ Driver
Loading...
Searching...
No Matches
esp32_as5047u_test_config.hpp File Reference

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

#include <cstdint>
Include dependency graph for esp32_as5047u_test_config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AS5047U_TestConfig::SPIPins
 SPI Configuration for ESP32-C6. More...
 
struct  AS5047U_TestConfig::ControlPins
 Control GPIO Pins for AS5047U. More...
 
struct  AS5047U_TestConfig::SPIParams
 SPI Communication Parameters. More...
 
struct  AS5047U_TestConfig::EncoderSpecs
 Encoder Resolution and Specifications. More...
 
struct  AS5047U_TestConfig::SupplyVoltage
 Supply Voltage Specifications (volts) More...
 
struct  AS5047U_TestConfig::Temperature
 Temperature Specifications (celsius) More...
 
struct  AS5047U_TestConfig::Timing
 Timing Parameters. More...
 
struct  AS5047U_TestConfig::Diagnostics
 Diagnostic Thresholds. More...
 
struct  AS5047U_TestConfig::TestConfig
 Test Configuration. More...
 
struct  AS5047U_TestConfig::AppConfig
 Application-specific Configuration. More...
 

Namespaces

namespace  AS5047U_TestConfig
 

Macros

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

Detailed Description

Hardware configuration for AS5047U 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.

Author
N3b3x
Date
2025
Version
1.0.0

Macro Definition Documentation

◆ AS5047U_VALIDATE_GPIO

#define AS5047U_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

◆ ESP32_AS5047U_ENABLE_DETAILED_SPI_LOGGING

#define ESP32_AS5047U_ENABLE_DETAILED_SPI_LOGGING   1

Enable detailed SPI transaction logging.

When enabled (set to 1), the Esp32As5047uSpiBus will log detailed information about each SPI transaction including:

  • TX/RX frame bytes
  • Register read/write details
  • Parity and error flag checks

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

Default: 1 (enabled) for integration test - Set to 0 to reduce log noise