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

MAG – CORDIC Magnitude register (0x3FFD, read-only) More...

#include <as5047u_registers.hpp>

Public Attributes

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

Static Public Attributes

static constexpr uint16_t ADDRESS = 0x3FFD
 

Detailed Description

MAG – CORDIC Magnitude register (0x3FFD, read-only)

Bits Name R Description
0-13 MAG_value R CORDIC magnitude (14-bit value of magnetic field strength)
14-15 (reserved) - Reserved bits (reads 0)

The MAG_value represents the magnitude of the vector computed by the CORDIC (Coordinate Rotation Digital Computer), corresponding to the strength of the magnetic field as seen by the sensor. Under normal conditions with a properly placed magnet, this value stays near a target level (e.g., ~0x0FFF). A significantly lower value (together with the MagHalf_flag in DIA or MagHalf in ERRFL) indicates the field is about half of the expected strength.

Member Data Documentation

◆ [union]

union { ... } AS5047U_REG::MAG

◆ ADDRESS

constexpr uint16_t AS5047U_REG::MAG::ADDRESS = 0x3FFD
staticconstexpr

◆ [struct]

struct { ... } AS5047U_REG::MAG::bits

◆ MAG_value

uint16_t AS5047U_REG::MAG::MAG_value

◆ reserved_14_15

uint16_t AS5047U_REG::MAG::reserved_14_15

◆ value

uint16_t AS5047U_REG::MAG::value

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