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

DIA – Diagnostic register (0x3FF5, read-only) More...

#include <as5047u_registers.hpp>

Public Attributes

union { 
 
   uint16_t   value 
 
   struct { 
 
      uint16_t   VDD_mode: 1 
 
      uint16_t   LoopsFinished: 1 
 
      uint16_t   CORDIC_overflow_flag: 1 
 
      uint16_t   Comp_l: 1 
 
      uint16_t   Comp_h: 1 
 
      uint16_t   MagHalf_flag: 1 
 
      uint16_t   CosOff_fin: 1 
 
      uint16_t   SinOff_fin: 1 
 
      uint16_t   OffComp_finished: 1 
 
      uint16_t   AGC_finished: 1 
 
      uint16_t   unused_10: 1 
 
      uint16_t   SPI_cnt: 2 
 
      uint16_t   reserved_13_15: 3 
 
   }   bits 
 
};  
 

Static Public Attributes

static constexpr uint16_t ADDRESS = 0x3FF5
 

Detailed Description

DIA – Diagnostic register (0x3FF5, read-only)

Bits Name R Description
0 VDD_mode R Supply voltage mode (0 = 3.3V operation mode,

| | | 1 = 5V operation mode) 1 | LoopsFinished | R | Magneto-mechanical loops finished (1 = all internal | | | startup loops complete) 2 | CORDIC_overflow_flag| R| CORDIC overflow error flag (1 = CORDIC arithmetic | | | overflow occurred) 3 | Comp_l | R | AGC low warning flag (1 = magnetic field strong – | | | AGC near 0) 4 | Comp_h | R | AGC high warning flag (1 = magnetic field weak – | | | AGC near 255) 5 | MagHalf_flag | R | Magnitude half-range error flag (1 = measured MAG below | | | half of target) 6 | CosOff_fin | R | Cosine offset compensation finished (1 = cosine offset | | | calib complete) 7 | SinOff_fin | R | Sine offset compensation finished (1 = sine offset | | | calib complete) 8 | OffComp_finished | R | Offset compensation finished flag (0 = still running, | | | 1 = completed) 9 | AGC_finished | R | AGC initialization finished (1 = initial gain calibration | | | complete) 10 | (unused) | - | Unused bit (always 0) 11-12| SPI_cnt | R | SPI frame counter (2-bit rolling count of consecutive | | | SPI frames) 13-15| (reserved) | - | Reserved (reads 0)

Member Data Documentation

◆ [union]

union { ... } AS5047U_REG::DIA

◆ ADDRESS

constexpr uint16_t AS5047U_REG::DIA::ADDRESS = 0x3FF5
staticconstexpr

◆ AGC_finished

uint16_t AS5047U_REG::DIA::AGC_finished

◆ [struct]

struct { ... } AS5047U_REG::DIA::bits

◆ Comp_h

uint16_t AS5047U_REG::DIA::Comp_h

◆ Comp_l

uint16_t AS5047U_REG::DIA::Comp_l

◆ CORDIC_overflow_flag

uint16_t AS5047U_REG::DIA::CORDIC_overflow_flag

◆ CosOff_fin

uint16_t AS5047U_REG::DIA::CosOff_fin

◆ LoopsFinished

uint16_t AS5047U_REG::DIA::LoopsFinished

◆ MagHalf_flag

uint16_t AS5047U_REG::DIA::MagHalf_flag

◆ OffComp_finished

uint16_t AS5047U_REG::DIA::OffComp_finished

◆ reserved_13_15

uint16_t AS5047U_REG::DIA::reserved_13_15

◆ SinOff_fin

uint16_t AS5047U_REG::DIA::SinOff_fin

◆ SPI_cnt

uint16_t AS5047U_REG::DIA::SPI_cnt

◆ unused_10

uint16_t AS5047U_REG::DIA::unused_10

◆ value

uint16_t AS5047U_REG::DIA::value

◆ VDD_mode

uint16_t AS5047U_REG::DIA::VDD_mode

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