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

Shared utility functions for handler CRTP communication adapters. More...

#include <cstdarg>
#include <cstdint>
#include <cstdio>
#include "Logger.h"
Include dependency graph for HandlerCommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  handler_utils
 

Functions

void handler_utils::RouteLogToLogger (int level, const char *tag, const char *format, va_list args) noexcept
 Route a driver log message to the Logger singleton.
 
void handler_utils::DelayMs (uint32_t ms) noexcept
 RTOS-aware millisecond delay.
 
void handler_utils::DelayUs (uint32_t us) noexcept
 Microsecond delay with automatic fallback to RTOS delay for large values.
 

Detailed Description

Shared utility functions for handler CRTP communication adapters.

Provides common implementations for debug logging routing and delay operations, eliminating code duplication across handler communication adapters (TLE92466ED, TMC5160, TMC9660, MAX22200, etc.).

All functions are header-only (inline) so no additional .cpp is needed.