HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
Max22200Handler.h File Reference

Unified handler for MAX22200 octal solenoid and motor driver. More...

#include <cstdint>
#include <memory>
#include <type_traits>
#include "core/hf-core-drivers/external/hf-max22200-driver/inc/max22200.hpp"
#include "core/hf-core-drivers/external/hf-max22200-driver/inc/max22200_spi_interface.hpp"
#include "core/hf-core-drivers/external/hf-max22200-driver/inc/max22200_types.hpp"
#include "base/BaseSpi.h"
#include "base/BaseGpio.h"
#include "RtosMutex.h"
Include dependency graph for Max22200Handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HalSpiMax22200Comm
 CRTP SPI communication adapter for MAX22200 using BaseSpi and BaseGpio. More...
 
class  Max22200Handler
 Unified handler for MAX22200 octal solenoid/motor driver. More...
 

Detailed Description

Unified handler for MAX22200 octal solenoid and motor driver.

Provides HAL-level integration for the MAX22200 using BaseSpi and BaseGpio. Features:

  • CRTP SPI adapter bridging BaseSpi to the MAX22200 two-phase SPI protocol
  • 8-channel high/low-side output control with CDR/VDR drive modes
  • Channel-pair modes (independent, parallel, half-bridge, full-bridge)
  • Comprehensive fault monitoring and DPM (Detect Plunger Movement)
  • Convenience APIs with real-unit parameters (mA, %, ms)
  • Thread-safe operations with RtosMutex
  • Lazy initialization pattern
  • Full driver access through GetDriver() for advanced operations
Author
HardFOC Team
Date
2025