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

ESP32 SPI transport implementation for MAX22200 driver (header-only) More...

#include "../../../inc/max22200_spi_interface.hpp"
#include "esp32_max22200_test_config.hpp"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_log.h"
#include "esp_rom_sys.h"
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <memory>
Include dependency graph for esp32_max22200_bus.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Esp32Max22200SpiBus
 ESP32 SPI transport implementation for MAX22200 driver. More...
 
struct  Esp32Max22200SpiBus::SPIConfig
 SPI configuration structure. More...
 

Functions

auto CreateEsp32Max22200SpiBus () noexcept -> std::unique_ptr< Esp32Max22200SpiBus >
 Factory function to create a configured Esp32Max22200SpiBus instance.
 

Detailed Description

ESP32 SPI transport implementation for MAX22200 driver (header-only)

This file provides the ESP32-specific implementation of the max22200::SpiInterface for communicating with MAX22200 octal solenoid and motor driver over SPI.

Header-only implementation — no separate .cpp file needed.

Author
N3b3x
Date
2025

Function Documentation

◆ CreateEsp32Max22200SpiBus()

auto CreateEsp32Max22200SpiBus ( ) -> std::unique_ptr<Esp32Max22200SpiBus>
inlinenoexcept

Factory function to create a configured Esp32Max22200SpiBus instance.

Creates an Esp32Max22200SpiBus using pin and parameter values from MAX22200_TestConfig namespace (esp32_max22200_test_config.hpp).

Returns
std::unique_ptr<Esp32Max22200SpiBus> Configured SPI interface