HF-AS5047U Driver  0.1.0-dev
HF-AS5047U C++ Driver
Loading...
Searching...
No Matches
AS5047U_REG::VEL Struct Reference

VEL – Velocity register (0x3FFC, read-only) More...

#include <as5047u_registers.hpp>

Public Attributes

union { 
 
   uint16_t   value 
 
   struct { 
 
      uint16_t   VEL_value: 14 
 
      uint16_t   reserved_14_15: 2 
 
   }   bits 
 
};  
 

Static Public Attributes

static constexpr uint16_t ADDRESS = 0x3FFC
 

Detailed Description

VEL – Velocity register (0x3FFC, read-only)

Bits Name R Description
0-13 VEL_value R Measured velocity (14-bit two’s complement value)
14-15 (reserved) - Reserved bits (reads 0)

VEL_value is a signed 14-bit integer representing the rotational velocity. The value is given in two’s complement format. A positive value indicates rotation in the default direction (DIR=0 defined direction), while a negative value indicates rotation in the opposite direction. Scale: 24.141 °/s per LSB (datasheet V_Sens). When the magnet is stationary, the velocity output has RMS noise per datasheet Figure 17 (e.g. 5.8 °/s typical for K=0); small non-zero readings at standstill are therefore expected.

Member Data Documentation

◆ [union]

union { ... } AS5047U_REG::VEL

◆ ADDRESS

constexpr uint16_t AS5047U_REG::VEL::ADDRESS = 0x3FFC
staticconstexpr

◆ [struct]

struct { ... } AS5047U_REG::VEL::bits

◆ reserved_14_15

uint16_t AS5047U_REG::VEL::reserved_14_15

◆ value

uint16_t AS5047U_REG::VEL::value

◆ VEL_value

uint16_t AS5047U_REG::VEL::VEL_value

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