HardFOC Core
API reference
Loading...
Searching...
No Matches
Functions
As5047uHandler.cpp File Reference

Implementation of unified AS5047U magnetic rotary position sensor handler. More...

#include "As5047uHandler.h"
#include <cstring>
#include <algorithm>
#include <cmath>
#include "handlers/logger/Logger.h"

Functions

std::unique_ptr< As5047uHandler > CreateAs5047uHandler (BaseSpi &spi_interface, const As5047uConfig &config) noexcept
 Create AS5047U handler instance.
 

Detailed Description

Implementation of unified AS5047U magnetic rotary position sensor handler.

This file implements the comprehensive AS5047U handler with CRTP SPI integration, lazy initialization, shared pointer management, and complete exception-free design.

Key implementation features:

Author
HardFOC Team
Version
1.0
Date
2025

Function Documentation

◆ CreateAs5047uHandler()

std::unique_ptr< As5047uHandler > CreateAs5047uHandler ( BaseSpi &  spi_interface,
const As5047uConfig &  config = As5047uHandler::GetDefaultConfig() 
)
noexcept

Create AS5047U handler instance.

Parameters
spi_interfaceReference to SPI interface
configSensor configuration
Returns
Unique pointer to AS5047U handler