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

Type definitions for the AS5047U driver. More...

#include <cstdint>
Include dependency graph for as5047u_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  FrameFormat : uint8_t { SPI_16 , SPI_24 , SPI_32 }
 Supported SPI frame formats for AS5047U communication. More...
 
enum class  FilterPreset : uint8_t { LowNoise = 0 , Balanced , HighBandwidth }
 Presets for the adaptive velocity/angle filter (Dynamic Filter System). More...
 

Detailed Description

Type definitions for the AS5047U driver.

Enumeration Type Documentation

◆ FilterPreset

enum class FilterPreset : uint8_t
strong

Presets for the adaptive velocity/angle filter (Dynamic Filter System).

Maps to datasheet Figure 17 "Angular Velocity Measurement Filter Parameters". Lower K = less noise at standstill, higher latency; higher K = more noise, faster response. Use SetFilterPreset() for one-call configuration.

Enumerator
LowNoise 

Minimum noise at standstill (~5.8 °/s RMS). Best for low-speed or static use.

Balanced 

Balanced noise vs response (~8–20 °/s). Good default for most applications.

HighBandwidth 

Maximum bandwidth, highest standstill noise (~245 °/s). Use when speed matters.

◆ FrameFormat

enum class FrameFormat : uint8_t
strong

Supported SPI frame formats for AS5047U communication.

Enumerator
SPI_16 

16-bit frames (no CRC, high-throughput mode)

SPI_24 

24-bit frames (includes 8-bit CRC for reliability)

SPI_32 

32-bit frames (includes 8-bit CRC and 8-bit pad for daisy-chain)