Public data types¶
The C-compatible types live in as5048a/types.h.
AS5048A_Angle_trawis the 14-bit count (0–16,383).degreescovers approximately 0–359.978 degrees andradiansapproximately 0–2π, with zero inclusive and one full revolution exclusive.AS5048A_Magnitude_trawholds the 14-bit CORDIC magnitude value. Interpret expected ranges using the datasheet and measurements from the final magnetic assembly.AS5048A_Diagnostics_trawpreserves the diagnostics register;agcis its 8-bit automatic gain value. The booleans expose offset-compensation completion, CORDIC overflow, magnet-too-strong, and magnet-too-weak state.AS5048A_Sample_tGroups angle, magnitude, and diagnostics.
validis true only whensample()completed and accepted all diagnostic conditions.