MAX22200 Driver
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations
max22200_spi_interface.hpp File Reference

CRTP-based template interface for SPI communication. More...

#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Classes

class  max22200::SpiInterface< Derived >
 CRTP-based template interface for SPI communication. More...
 

Namespaces

namespace  max22200
 

Enumerations

enum class  max22200::CtrlPin : uint8_t { max22200::ENABLE = 0 , max22200::FAULT , max22200::CMD }
 Identifies the hardware control pins of the MAX22200. More...
 
enum class  max22200::GpioSignal : uint8_t { max22200::INACTIVE = 0 , max22200::ACTIVE = 1 }
 Abstract signal level for control pins. More...
 

Detailed Description

CRTP-based template interface for SPI communication.

This file defines the hardware abstraction layer (HAL) interface for SPI communication and GPIO control required by the MAX22200 driver. Platform-specific implementations (e.g., ESP32, STM32) must inherit from SpiInterface and implement all pure virtual methods.

MAX22200 SPI Requirements

SPI Mode

SPI Clock Speed

SPI Signals

CMD Pin Control

The CMD pin is critical for the two-phase SPI protocol:

ENABLE Pin Control

FAULT Pin Reading