HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
esp32_tmc9660_bus.hpp File Reference

ESP32-specific communication interfaces for TMC9660 using SPI and UART. More...

#include "../../../inc/tmc9660_comm_interface.hpp"
#include "esp_log.h"
#include "driver/spi_master.h"
#include "driver/uart.h"
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_rom_sys.h"
#include <array>
#include <cstdarg>
#include <cstring>
#include <cstdint>
#include <memory>
Include dependency graph for esp32_tmc9660_bus.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Esp32Tmc9660SpiBus
 ESP32 SPI implementation of TMC9660CommInterface. More...
 
class  Esp32Tmc9660UartBus
 ESP32 UART implementation of TMC9660CommInterface. More...
 
struct  Esp32Tmc9660BusConfig
 Common bus configuration for ESP32 TMC9660 tests. More...
 

Functions

std::unique_ptr< Esp32Tmc9660SpiBusCreateEsp32Tmc9660SpiBus (const Esp32Tmc9660BusConfig &config=Esp32Tmc9660BusConfig{}) noexcept
 Create and initialize SPI communication interface.
 
std::unique_ptr< Esp32Tmc9660UartBusCreateEsp32Tmc9660UartBus (const Esp32Tmc9660BusConfig &config=Esp32Tmc9660BusConfig{}) noexcept
 Create and initialize UART communication interface.
 

Variables

static const charBUS_TAG = "TMC9660_Bus"
 

Detailed Description

ESP32-specific communication interfaces for TMC9660 using SPI and UART.

This file provides ESP32-specific implementations of the TMC9660CommInterface using ESP-IDF SPI and UART drivers. It serves as a common bus interface for all comprehensive test applications.

Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ CreateEsp32Tmc9660SpiBus()

std::unique_ptr< Esp32Tmc9660SpiBus > CreateEsp32Tmc9660SpiBus ( const Esp32Tmc9660BusConfig & config = Esp32Tmc9660BusConfig{})
inlinenoexcept

Create and initialize SPI communication interface.

Parameters
configBus configuration
Returns
Unique pointer to SPI interface, or nullptr on failure
Here is the caller graph for this function:

◆ CreateEsp32Tmc9660UartBus()

std::unique_ptr< Esp32Tmc9660UartBus > CreateEsp32Tmc9660UartBus ( const Esp32Tmc9660BusConfig & config = Esp32Tmc9660BusConfig{})
inlinenoexcept

Create and initialize UART communication interface.

Parameters
configBus configuration
Returns
Unique pointer to UART interface, or nullptr on failure
Here is the caller graph for this function:

Variable Documentation

◆ BUS_TAG

const char* BUS_TAG = "TMC9660_Bus"
static