analogdevicesinc / TMC-API

TRINAMIC's IC API
MIT License
188 stars 83 forks source link

MAX22216 unused register, wrong register and field names #58

Closed jonas-ott closed 3 months ago

jonas-ott commented 3 months ago

In the MAX22216 register definitions MAX22216_I_DC_0 is defined as 0x46 (and the same for the other channels) however according to the datasheet 0x46 is not used.

Also, in comparison to the data sheet, some names for registers and fields are different. Here are the differences in register names:

name in header : name in data sheet DEMAG_VOLTAGE : DC_H2L ADC_VM_MEASUREMENT : VM_MONITOR CFG_DC : CFG_IDC_THLD I_ADC : I_MONITOR I_IND_AC : I_AC R : RES

And here are the fields with a wrong name:

name in header : name in data sheet ADC_VM_RAW : VM_MONITOR DELTA_PHI : F_AC_SCAN U_AC : U_AC_SCAN

trinamic-ASU commented 3 months ago

Thanks for pointing that out. We have updated the registers and the fields.

jonas-ott commented 3 months ago

Thanks