HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
Loading...
Searching...
No Matches
esp32_max22200_test_config.hpp File Reference

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

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

Go to the source code of this file.

Classes

struct  MAX22200_TestConfig::SPIPins
 SPI pin assignment for MAX22200 (SDI/SDO/SCK/CSB) More...
 
struct  MAX22200_TestConfig::ControlPins
 Control GPIO Pins for MAX22200. More...
 
struct  MAX22200_TestConfig::SPIParams
 SPI Communication Parameters. More...
 
struct  MAX22200_TestConfig::BoardTestConfig
 Board configuration for tests (single board: RREF via short = 15 kΩ) More...
 
struct  MAX22200_TestConfig::C21ValveConfig
 Parker C21 valve Hit and Hold (compile-time CDR vs VDR) More...
 
struct  MAX22200_TestConfig::SolenoidValvePatternConfig
 Solenoid valve test pattern timing (used by max22200_solenoid_valve_test) More...
 

Namespaces

namespace  MAX22200_TestConfig
 

Macros

#define ESP32_MAX22200_ENABLE_DETAILED_SPI_LOGGING   0
 Enable detailed SPI transaction logging.
 
#define ESP32_MAX22200_ENABLE_VERBOSE_BUS_LOGGING   1
 Enable verbose bus init/pin logging.
 
#define MAX22200_VALIDATE_GPIO(pin)    static_assert((pin) >= 0 && (pin) <= 48, "Invalid GPIO pin number for ESP32-C6")
 Helper macro for compile-time GPIO pin validation (ESP32-C6 allows 0-48)
 

Detailed Description

Hardware configuration for MAX22200 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

◆ ESP32_MAX22200_ENABLE_DETAILED_SPI_LOGGING

#define ESP32_MAX22200_ENABLE_DETAILED_SPI_LOGGING   0

Enable detailed SPI transaction logging.

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

  • TX/RX frame bytes
  • Register read/write details

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

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

◆ ESP32_MAX22200_ENABLE_VERBOSE_BUS_LOGGING

#define ESP32_MAX22200_ENABLE_VERBOSE_BUS_LOGGING   1

Enable verbose bus init/pin logging.

When enabled (set to 1), the Esp32Max22200SpiBus will log:

  • "SPI interface initialized successfully"
  • Per-pin init messages (ENABLE, CMD, TRIGA, TRIGB, FAULT)

When disabled (set to 0), only ESP_LOGE (real failures) and the MISO pullup warning (if it fails) are logged from the bus.

Default: 0 (disabled) - Set to 1 for bring-up or pin debugging

◆ MAX22200_VALIDATE_GPIO

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

Helper macro for compile-time GPIO pin validation (ESP32-C6 allows 0-48)