|
HF-AS5047U Driver
0.1.0-dev
HF-AS5047U C++ Driver
|
AGC – Automatic Gain Control register (0x3FF9, read-only) More...
#include <as5047u_registers.hpp>
Public Attributes | ||
| union { | ||
| uint16_t value | ||
| struct { | ||
| uint16_t AGC_value: 8 | ||
| uint16_t reserved_8_15: 8 | ||
| } bits | ||
| }; | ||
Static Public Attributes | |
| static constexpr uint16_t | ADDRESS = 0x3FF9 |
AGC – Automatic Gain Control register (0x3FF9, read-only)
| Bits | Name | R | Description |
|---|---|---|---|
| 0-7 | AGC_value | R | 8-bit AGC value (dynamic gain level, 0x00=minimum gain, 0xFF=maximum |
| gain) 8-15 | (reserved) | - | Reserved (reads 0) |
The AGC_value represents the current automatic gain control setting of the sensor’s analog front-end. A low value (near 0) means the magnetic field is strong (gain reduced), whereas a high value (near 255) means the field is weak (gain increased). This value is continuously adjusted to keep the CORDIC magnitude stable.
| union { ... } AS5047U_REG::AGC |
|
staticconstexpr |
| uint16_t AS5047U_REG::AGC::AGC_value |
| struct { ... } AS5047U_REG::AGC::bits |
| uint16_t AS5047U_REG::AGC::reserved_8_15 |
| uint16_t AS5047U_REG::AGC::value |