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

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

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

Go to the source code of this file.

Classes

class  Esp32As5047uSpiBus
 ESP32 SPI transport implementation for AS5047U driver. More...
 
struct  Esp32As5047uSpiBus::SPIConfig
 SPI configuration structure. More...
 

Functions

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

Detailed Description

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

This file provides the ESP32-specific implementation of the as5047u::SpiInterface interface for communicating with AS5047U magnetic encoder over SPI.

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

Author
N3b3x
Date
2025
Version
2.0.0

Function Documentation

◆ CreateEsp32As5047uSpiBus()

auto CreateEsp32As5047uSpiBus ( ) -> std::unique_ptr<Esp32As5047uSpiBus>
inlinenoexcept

Factory function to create a configured Esp32As5047uSpiBus instance.

Creates an Esp32As5047uSpiBus using pin and parameter values from AS5047U_TestConfig namespace (esp32_as5047u_test_config.hpp).

Returns
std::unique_ptr<Esp32As5047uSpiBus> Configured SPI bus interface