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

ERRFL – Error Flag register (0x0001, default 0x0000) More...

#include <as5047u_registers.hpp>

Public Attributes

union { 
 
   uint16_t   value 
 
   struct { 
 
      uint16_t   AGC_warning: 1 
 
      uint16_t   MagHalf: 1 
 
      uint16_t   P2RAM_warning: 1 
 
      uint16_t   P2RAM_error: 1 
 
      uint16_t   Framing_error: 1 
 
      uint16_t   Command_error: 1 
 
      uint16_t   CRC_error: 1 
 
      uint16_t   WDTST: 1 
 
      uint16_t   unused_8: 1 
 
      uint16_t   OffCompNotFinished: 1 
 
      uint16_t   CORDIC_Overflow: 1 
 
      uint16_t   reserved_11_15: 5 
 
   }   bits 
 
};  
 

Static Public Attributes

static constexpr uint16_t ADDRESS = 0x0001
 

Detailed Description

ERRFL – Error Flag register (0x0001, default 0x0000)

Bits Name R Description
0 AGC_warning R AGC at limit flag (1 = AGC value reached 0 or 255,

| | | indicating extreme magnetic field) 1 | MagHalf | R | Magnetic field half error (1 = AGC=255 and measured | | | magnitude ~ half of target) 2 | P2RAM_warning | R | OTP shadow (P2RAM) single-bit correction flag (ECC | | | corrected one bit) 3 | P2RAM_error | R | OTP shadow (P2RAM) double-bit error flag (uncorrectable | | | ECC error) 4 | Framing_error | R | SPI framing error (bad SPI frame alignment) 5 | Command_error | R | SPI command error (invalid SPI command received) 6 | CRC_error | R | SPI CRC communication error (CRC checksum mismatch) 7 | WDTST | R | Watchdog failure (1 = internal oscillator or watchdog | | | test failed) 8 | (unused) | - | Unused bit (always 0) 9 | OffCompNotFinished | R | Offset compensation not finished (1 = internal offset | | | calibration still in progress) 10 | CORDIC_Overflow | R | CORDIC overflow error flag (numerical overflow in | | | CORDIC cord. calc) 11-15| (reserved) | - | Reserved (reads 0)

Note
Reading the ERRFL register clears all the error flags (self-clearing on read). In case any error flag is set, it is recommended to read the DIA (Diagnostic) register for more detailed status.

Member Data Documentation

◆ [union]

union { ... } AS5047U_REG::ERRFL

◆ ADDRESS

constexpr uint16_t AS5047U_REG::ERRFL::ADDRESS = 0x0001
staticconstexpr

◆ AGC_warning

uint16_t AS5047U_REG::ERRFL::AGC_warning

◆ [struct]

struct { ... } AS5047U_REG::ERRFL::bits

◆ Command_error

uint16_t AS5047U_REG::ERRFL::Command_error

◆ CORDIC_Overflow

uint16_t AS5047U_REG::ERRFL::CORDIC_Overflow

◆ CRC_error

uint16_t AS5047U_REG::ERRFL::CRC_error

◆ Framing_error

uint16_t AS5047U_REG::ERRFL::Framing_error

◆ MagHalf

uint16_t AS5047U_REG::ERRFL::MagHalf

◆ OffCompNotFinished

uint16_t AS5047U_REG::ERRFL::OffCompNotFinished

◆ P2RAM_error

uint16_t AS5047U_REG::ERRFL::P2RAM_error

◆ P2RAM_warning

uint16_t AS5047U_REG::ERRFL::P2RAM_warning

◆ reserved_11_15

uint16_t AS5047U_REG::ERRFL::reserved_11_15

◆ unused_8

uint16_t AS5047U_REG::ERRFL::unused_8

◆ value

uint16_t AS5047U_REG::ERRFL::value

◆ WDTST

uint16_t AS5047U_REG::ERRFL::WDTST

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