HF-AS5047U Driver  0.1.0-dev
HF-AS5047U C++ Driver
Loading...
Searching...
No Matches
as5047u::AS5047U< SpiType >::Angle Struct Reference

Angle conversion helpers. More...

#include <as5047u.hpp>

Static Public Member Functions

static constexpr uint16_t DegreesToLsb (float degrees) noexcept
 
static constexpr uint16_t RadiansToLsb (float radians) noexcept
 

Static Public Attributes

static constexpr float DEG_PER_LSB = 360.0F / 16384.0F
 
static constexpr float RAD_PER_LSB = (2.0F * static_cast<float>(M_PI)) / 16384.0F
 

Detailed Description

template<typename SpiType>
struct as5047u::AS5047U< SpiType >::Angle

Angle conversion helpers.

Member Function Documentation

◆ DegreesToLsb()

template<typename SpiType >
static constexpr uint16_t as5047u::AS5047U< SpiType >::Angle::DegreesToLsb ( float degrees)
inlinestaticconstexprnoexcept

◆ RadiansToLsb()

template<typename SpiType >
static constexpr uint16_t as5047u::AS5047U< SpiType >::Angle::RadiansToLsb ( float radians)
inlinestaticconstexprnoexcept

Member Data Documentation

◆ DEG_PER_LSB

template<typename SpiType >
constexpr float as5047u::AS5047U< SpiType >::Angle::DEG_PER_LSB = 360.0F / 16384.0F
staticconstexpr

◆ RAD_PER_LSB

template<typename SpiType >
constexpr float as5047u::AS5047U< SpiType >::Angle::RAD_PER_LSB = (2.0F * static_cast<float>(M_PI)) / 16384.0F
staticconstexpr

The documentation for this struct was generated from the following file: