TMC9660 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Variables
tmc9660::regs Namespace Reference

The registers by name. More...

Variables

constexpr RegAddr MCC_INFO_CHIP {.block = Block::Mcc, .offset = 0x000}
 Chip ID.
 
constexpr RegAddr MCC_ADC_I1_I0_RAW {.block = Block::Mcc, .offset = 0x020}
 Raw phase currents I1, I0.
 
constexpr RegAddr MCC_ADC_I3_I2_RAW {.block = Block::Mcc, .offset = 0x021}
 Raw phase currents I3, I2.
 
constexpr RegAddr MCC_ADC_U1_U0_RAW {.block = Block::Mcc, .offset = 0x022}
 Measured phase voltages U1 and U0.
 
constexpr RegAddr MCC_ADC_U3_U2_RAW {.block = Block::Mcc, .offset = 0x023}
 Measured phase voltage.
 
constexpr RegAddr MCC_ADC_TEMP_VM_RAW {.block = Block::Mcc, .offset = 0x024}
 Raw Die temperature voltage and supply voltage monitoring value.
 
constexpr RegAddr MCC_ADC_AIN1_AIN0_RAW {.block = Block::Mcc, .offset = 0x025}
 Raw analog values AIN1 and AIN0.
 
constexpr RegAddr MCC_ADC_AIN3_AIN2_RAW {.block = Block::Mcc, .offset = 0x026}
 Raw analog values AIN3 and AIN2.
 
constexpr RegAddr MCC_ADC_I_GEN_CONFIG {.block = Block::Mcc, .offset = 0x040}
 General configuration setup of the current ADCs.
 
constexpr RegAddr MCC_ADC_I0_CONFIG {.block = Block::Mcc, .offset = 0x041}
 Current ADC channel 0 offset and scaling values.
 
constexpr RegAddr MCC_ADC_I1_CONFIG {.block = Block::Mcc, .offset = 0x042}
 Current ADC channel 1 offset and scaling values.
 
constexpr RegAddr MCC_ADC_I2_CONFIG {.block = Block::Mcc, .offset = 0x043}
 Current ADC channel 2 offset and scaling values.
 
constexpr RegAddr MCC_ADC_I3_CONFIG {.block = Block::Mcc, .offset = 0x044}
 Current ADC channel 3 offset and scaling values.
 
constexpr RegAddr MCC_ADC_I1_I0_SCALED {.block = Block::Mcc, .offset = 0x045}
 Phase current I1, I0; after applying scaling and offset.
 
constexpr RegAddr MCC_ADC_I3_I2_SCALED {.block = Block::Mcc, .offset = 0x046}
 Phase current I3, I2; after applying scaling and offset.
 
constexpr RegAddr MCC_ADC_IWY_IUX {.block = Block::Mcc, .offset = 0x047}
 Scaled current ADC value including signed added offset as input for the FOC.
 
constexpr RegAddr MCC_ADC_IV {.block = Block::Mcc, .offset = 0x048}
 Scaled current ADC value including signed added offset as input for the FOC.
 
constexpr RegAddr MCC_ADC_STATUS {.block = Block::Mcc, .offset = 0x049}
 ADC status flags.
 
constexpr RegAddr MCC_MOTOR_CONFIG {.block = Block::Mcc, .offset = 0x060}
 Motor type configuration and number of pole pairs.
 
constexpr RegAddr MCC_MOTION_CONFIG {.block = Block::Mcc, .offset = 0x061}
 Register for selection of ramp mode, motion mode and controller feedforward.
 
constexpr RegAddr MCC_PHI_E_SELECTION {.block = Block::Mcc, .offset = 0x062}
 Selection of phi resp.
 
constexpr RegAddr MCC_PHI_E {.block = Block::Mcc, .offset = 0x063}
 Angle used for the inner FOC loop.
 
constexpr RegAddr MCC_PWM_CONFIG {.block = Block::Mcc, .offset = 0x080}
 PWM Configuration: Chopper Mode, Enable Space Vector, Enable Bridge, Y2 Source, Offset.
 
constexpr RegAddr MCC_PWM_MAXCNT {.block = Block::Mcc, .offset = 0x081}
 PWM counter maximum length register PWM_MAXCNT controls the PWM frequency.
 
constexpr RegAddr MCC_PWM_SWITCH_LIMIT {.block = Block::Mcc, .offset = 0x083}
 
constexpr RegAddr MCC_ABN_PHI_E_PHI_M {.block = Block::Mcc, .offset = 0x0a0}
 ABN Decoder electrical angle PHI_E and mechanical angle PHI_M.
 
constexpr RegAddr MCC_ABN_MODE {.block = Block::Mcc, .offset = 0x0a1}
 ABN decoder configuration.
 
constexpr RegAddr MCC_ABN_CPR {.block = Block::Mcc, .offset = 0x0a2}
 
constexpr RegAddr MCC_ABN_CPR_INV {.block = Block::Mcc, .offset = 0x0a3}
 2^32 divided by decoder counts per revolution.
 
constexpr RegAddr MCC_ABN_COUNT {.block = Block::Mcc, .offset = 0x0a4}
 Raw decoder count.
 
constexpr RegAddr MCC_ABN_COUNT_N {.block = Block::Mcc, .offset = 0x0a5}
 ABN_COUNT latched on N pulse, when N pulse clears ABN_COUNT then ABN_COUNT_N is also 0.
 
constexpr RegAddr MCC_ABN_PHI_E_OFFSET {.block = Block::Mcc, .offset = 0x0a6}
 Offset for ABN_PHI_E.
 
constexpr RegAddr MCC_HALL_MODE {.block = Block::Mcc, .offset = 0x0c0}
 Hall decoder configuration.
 
constexpr RegAddr MCC_HALL_DPHI_MAX {.block = Block::Mcc, .offset = 0x0c1}
 Maximum dx for extrapolation (default for digital hall: (2^16)/6).
 
constexpr RegAddr MCC_HALL_PHI_E_OFFSET {.block = Block::Mcc, .offset = 0x0c2}
 Offset for electrical angle hall_phi_e of hall decoder.
 
constexpr RegAddr MCC_HALL_COUNT {.block = Block::Mcc, .offset = 0x0c3}
 Count of passed hall states.
 
constexpr RegAddr MCC_HALL_PHI_E_EXTRAPOLATED_PHI_E {.block = Block::Mcc, .offset = 0x0c4}
 Hall decoder electrical angle PHI_E.
 
constexpr RegAddr MCC_HALL_POSITION_060_POSITION_000 {.block = Block::Mcc, .offset = 0x0c5}
 Position of the hall sensor.
 
constexpr RegAddr MCC_HALL_POSITION_180_POSITION_120 {.block = Block::Mcc, .offset = 0x0c6}
 Position of the hall sensor.
 
constexpr RegAddr MCC_HALL_POSITION_300_POSITION_240 {.block = Block::Mcc, .offset = 0x0c7}
 Position of the hall sensor.
 
constexpr RegAddr MCC_BIQUAD_V_A_1 {.block = Block::Mcc, .offset = 0x0e0}
 Biquad velocity filter coefficient A_1.
 
constexpr RegAddr MCC_BIQUAD_V_A_2 {.block = Block::Mcc, .offset = 0x0e1}
 Biquad velocity filter coefficient A_2.
 
constexpr RegAddr MCC_BIQUAD_V_B_0 {.block = Block::Mcc, .offset = 0x0e2}
 Biquad velocity filter coefficient B_0.
 
constexpr RegAddr MCC_BIQUAD_V_B_1 {.block = Block::Mcc, .offset = 0x0e3}
 Biquad velocity filter coefficient B_1.
 
constexpr RegAddr MCC_BIQUAD_V_B_2 {.block = Block::Mcc, .offset = 0x0e4}
 Biquad velocity filter coefficient B_2.
 
constexpr RegAddr MCC_BIQUAD_V_ENABLE {.block = Block::Mcc, .offset = 0x0e5}
 Biquad velocity filter enable.
 
constexpr RegAddr MCC_BIQUAD_T_A_1 {.block = Block::Mcc, .offset = 0x0e6}
 Biquad torque filter coefficient A_1.
 
constexpr RegAddr MCC_BIQUAD_T_A_2 {.block = Block::Mcc, .offset = 0x0e7}
 Biquad torque filter coefficient A_2.
 
constexpr RegAddr MCC_BIQUAD_T_B_0 {.block = Block::Mcc, .offset = 0x0e8}
 Biquad torque filter coefficient B_0.
 
constexpr RegAddr MCC_BIQUAD_T_B_1 {.block = Block::Mcc, .offset = 0x0e9}
 Biquad torque filter coefficient B_1.
 
constexpr RegAddr MCC_BIQUAD_T_B_2 {.block = Block::Mcc, .offset = 0x0ea}
 Biquad torque filter coefficient B_2.
 
constexpr RegAddr MCC_BIQUAD_T_ENABLE {.block = Block::Mcc, .offset = 0x0eb}
 Biquad torque filter enable.
 
constexpr RegAddr MCC_VELOCITY_CONFIG {.block = Block::Mcc, .offset = 0x100}
 Velocity meter configuration.
 
constexpr RegAddr MCC_VELOCITY_SCALING {.block = Block::Mcc, .offset = 0x101}
 Scaling factor for velocity meter output.
 
constexpr RegAddr MCC_V_MIN_POS_DEV_TIME_COUNTER_LIMIT {.block = Block::Mcc, .offset = 0x102}
 Velocity meter configuration.
 
constexpr RegAddr MCC_MAX_VEL_DEVIATION {.block = Block::Mcc, .offset = 0x103}
 Velocity deviation to generate tracking error flag.
 
constexpr RegAddr MCC_POSITION_CONFIG {.block = Block::Mcc, .offset = 0x120}
 Position configuration.
 
constexpr RegAddr MCC_MAX_POS_DEVIATION {.block = Block::Mcc, .offset = 0x121}
 Absolute position deviation to generate tracking error flag.
 
constexpr RegAddr MCC_RAMPER_STATUS {.block = Block::Mcc, .offset = 0x140}
 Ramp status and switch event status flags.
 
constexpr RegAddr MCC_RAMPER_A1 {.block = Block::Mcc, .offset = 0x141}
 First acceleration value during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_A2 {.block = Block::Mcc, .offset = 0x142}
 Second acceleration value during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_A_MAX {.block = Block::Mcc, .offset = 0x143}
 Maximum acceleration value in top part of EigthPoint ramp.
 
constexpr RegAddr MCC_RAMPER_D1 {.block = Block::Mcc, .offset = 0x144}
 Lower deceleration value during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_D2 {.block = Block::Mcc, .offset = 0x145}
 Higher deceleration value in EigthPoint ramp.
 
constexpr RegAddr MCC_RAMPER_D_MAX {.block = Block::Mcc, .offset = 0x146}
 Deceleration in top part of EightPoint ramp.
 
constexpr RegAddr MCC_RAMPER_V_START {.block = Block::Mcc, .offset = 0x147}
 First velocity value during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_V1 {.block = Block::Mcc, .offset = 0x148}
 First velocity value for ac-/deceleration value switching during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_V2 {.block = Block::Mcc, .offset = 0x149}
 Second velocity value for ac-/deceleration value switching during EigthPoint ramp mode.
 
constexpr RegAddr MCC_RAMPER_V_STOP {.block = Block::Mcc, .offset = 0x14a}
 Stop Velocity in EightPoint Ramp.
 
constexpr RegAddr MCC_RAMPER_V_MAX {.block = Block::Mcc, .offset = 0x14b}
 Maximum velocity value for positioning in EightPoint ramp.
 
constexpr RegAddr MCC_RAMPER_V_TARGET {.block = Block::Mcc, .offset = 0x14c}
 Target velocity value in EightPoint ramp.
 
constexpr RegAddr MCC_RAMPER_SWITCH_MODE {.block = Block::Mcc, .offset = 0x14d}
 Ramper mode configuration bits.
 
constexpr RegAddr MCC_RAMPER_TIME_CONFIG {.block = Block::Mcc, .offset = 0x14e}
 Ramper timing configuration.
 
constexpr RegAddr MCC_RAMPER_A_ACTUAL {.block = Block::Mcc, .offset = 0x14f}
 Actual ramp acceleration value.
 
constexpr RegAddr MCC_RAMPER_X_ACTUAL {.block = Block::Mcc, .offset = 0x150}
 Actual multi-turn position of ramp controller.
 
constexpr RegAddr MCC_RAMPER_V_ACTUAL {.block = Block::Mcc, .offset = 0x151}
 Actual velocity of Ramp controller output.
 
constexpr RegAddr MCC_RAMPER_X_TARGET {.block = Block::Mcc, .offset = 0x152}
 Multi-turn target position of Ramp controller.
 
constexpr RegAddr MCC_RAMPER_PHI_E {.block = Block::Mcc, .offset = 0x153}
 PHI_E of ramp controller.
 
constexpr RegAddr MCC_RAMPER_PHI_E_OFFSET {.block = Block::Mcc, .offset = 0x154}
 Offset value for calculation of RAMPER_PHI_E.
 
constexpr RegAddr MCC_RAMPER_ACC_FF {.block = Block::Mcc, .offset = 0x155}
 Gain and shift factor for Acc. feedforward.
 
constexpr RegAddr MCC_RAMPER_X_ACTUAL_LATCH {.block = Block::Mcc, .offset = 0x156}
 Latches RAMPER_X_ACTUAL on left or right switch or Encoder trigger.
 
constexpr RegAddr MCC_POSITION_ACTUAL_LATCH {.block = Block::Mcc, .offset = 0x157}
 Latches PID_POSITION_ACTUAL on left or right switch or Encoder trigger.
 
constexpr RegAddr MCC_PRBS_AMPLITUDE {.block = Block::Mcc, .offset = 0x160}
 Set the amplitude of the PRBS signal used by some settings of MCC_MOTION_CONFIG -> MOTION_MODE.
 
constexpr RegAddr MCC_PRBS_DOWN_SAMPLING_RATIO {.block = Block::Mcc, .offset = 0x161}
 Set downsampling rate of PWM frequency to trigger new PRBS value generation.
 
constexpr RegAddr MCC_PID_CONFIG {.block = Block::Mcc, .offset = 0x180}
 PI controller configuration.
 
constexpr RegAddr MCC_PID_FLUX_COEFF {.block = Block::Mcc, .offset = 0x181}
 Configuration of the PI Flux controller gains.
 
constexpr RegAddr MCC_PID_TORQUE_COEFF {.block = Block::Mcc, .offset = 0x182}
 Configuration of the PI Torque controller gains.
 
constexpr RegAddr MCC_PID_FIELDWEAK_COEFF {.block = Block::Mcc, .offset = 0x183}
 Configuration of the PI Fieldweakening controller gains.
 
constexpr RegAddr MCC_PID_U_S_MAX {.block = Block::Mcc, .offset = 0x184}
 Maximum voltage allowed for fieldweakening.
 
constexpr RegAddr MCC_PID_VELOCITY_COEFF {.block = Block::Mcc, .offset = 0x185}
 Configuration of the PI Velocity controller gains.
 
constexpr RegAddr MCC_PID_POSITION_COEFF {.block = Block::Mcc, .offset = 0x186}
 Configuration of the PI Position controller gains.
 
constexpr RegAddr MCC_PID_POSITION_TOLERANCE {.block = Block::Mcc, .offset = 0x187}
 
constexpr RegAddr MCC_PID_POSITION_TOLERANCE_DELAY {.block = Block::Mcc, .offset = 0x188}
 Number of PWM periods the abs(PID_POSITION_ERROR) must stay within PID_POSITION_TOLERANCE after.
 
constexpr RegAddr MCC_PID_UQ_UD_LIMITS {.block = Block::Mcc, .offset = 0x189}
 Set maximum output voltage limit value.
 
constexpr RegAddr MCC_PID_TORQUE_FLUX_LIMITS {.block = Block::Mcc, .offset = 0x18a}
 Set maximum target absolute current for torque and flux PI controller.
 
constexpr RegAddr MCC_PID_VELOCITY_LIMIT {.block = Block::Mcc, .offset = 0x18b}
 Set maximum absolute velocity for velocity PI controller.
 
constexpr RegAddr MCC_PID_POSITION_LIMIT_LOW {.block = Block::Mcc, .offset = 0x18c}
 Set minimum target position for position PI controller.
 
constexpr RegAddr MCC_PID_POSITION_LIMIT_HIGH {.block = Block::Mcc, .offset = 0x18d}
 Set maximum target position for position PI controller.
 
constexpr RegAddr MCC_PID_TORQUE_FLUX_TARGET {.block = Block::Mcc, .offset = 0x18e}
 PID target torque and target flux (for torque mode).
 
constexpr RegAddr MCC_PID_TORQUE_FLUX_OFFSET {.block = Block::Mcc, .offset = 0x18f}
 PID torque and flux offset.
 
constexpr RegAddr MCC_PID_VELOCITY_TARGET {.block = Block::Mcc, .offset = 0x190}
 PID Target velocity (for velocity mode).
 
constexpr RegAddr MCC_PID_VELOCITY_OFFSET {.block = Block::Mcc, .offset = 0x191}
 PID velocity offset for feed forward control.
 
constexpr RegAddr MCC_PID_POSITION_TARGET {.block = Block::Mcc, .offset = 0x192}
 Target position register (for position mode).
 
constexpr RegAddr MCC_PID_TORQUE_FLUX_ACTUAL {.block = Block::Mcc, .offset = 0x193}
 PID actual torque and flux.
 
constexpr RegAddr MCC_PID_VELOCITY_ACTUAL {.block = Block::Mcc, .offset = 0x194}
 PID actual velocity.
 
constexpr RegAddr MCC_PID_POSITION_ACTUAL {.block = Block::Mcc, .offset = 0x195}
 PID actual position.
 
constexpr RegAddr MCC_PID_POSITION_ACTUAL_OFFSET {.block = Block::Mcc, .offset = 0x196}
 Offset for actual position.
 
constexpr RegAddr MCC_PID_TORQUE_ERROR {.block = Block::Mcc, .offset = 0x197}
 PID torque error.
 
constexpr RegAddr MCC_PID_FLUX_ERROR {.block = Block::Mcc, .offset = 0x198}
 PID flux error.
 
constexpr RegAddr MCC_PID_VELOCITY_ERROR {.block = Block::Mcc, .offset = 0x199}
 PID velocity error.
 
constexpr RegAddr MCC_PID_POSITION_ERROR {.block = Block::Mcc, .offset = 0x19a}
 PID position error.
 
constexpr RegAddr MCC_PID_TORQUE_INTEGRATOR {.block = Block::Mcc, .offset = 0x19b}
 PID torque Integrator.
 
constexpr RegAddr MCC_PID_FLUX_INTEGRATOR {.block = Block::Mcc, .offset = 0x19c}
 PID flux Integrator.
 
constexpr RegAddr MCC_PID_VELOCITY_INTEGRATOR {.block = Block::Mcc, .offset = 0x19d}
 PID velocity Integrator.
 
constexpr RegAddr MCC_PID_POSITION_INTEGRATOR {.block = Block::Mcc, .offset = 0x19e}
 PID position Integrator.
 
constexpr RegAddr MCC_PIDIN_TORQUE_FLUX_TARGET {.block = Block::Mcc, .offset = 0x1a0}
 PID target torque and target flux for readback.
 
constexpr RegAddr MCC_PIDIN_VELOCITY_TARGET {.block = Block::Mcc, .offset = 0x1a1}
 PID target velocity for readback.
 
constexpr RegAddr MCC_PIDIN_POSITION_TARGET {.block = Block::Mcc, .offset = 0x1a2}
 PID target position for readback.
 
constexpr RegAddr MCC_PIDIN_TORQUE_FLUX_TARGET_LIMITED {.block = Block::Mcc, .offset = 0x1a3}
 PID target torque and target flux after PID_TORQUE_FLUX_LIMITS applied.
 
constexpr RegAddr MCC_PIDIN_VELOCITY_TARGET_LIMITED {.block = Block::Mcc, .offset = 0x1a4}
 PID target velocity after PID_VELOCITY_LIMIT applied.
 
constexpr RegAddr MCC_PIDIN_POSITION_TARGET_LIMITED {.block = Block::Mcc, .offset = 0x1a5}
 PID target position after PID_POSITION_LIMIT_LOW and PID_POSITION_LIMIT_HIGH applied.
 
constexpr RegAddr MCC_FOC_IBETA_IALPHA {.block = Block::Mcc, .offset = 0x1a6}
 Interim result of the FOC, IALPHA, and IBETA term.
 
constexpr RegAddr MCC_FOC_IQ_ID {.block = Block::Mcc, .offset = 0x1a7}
 Interim result of the FOC, ID, and IQ term.
 
constexpr RegAddr MCC_FOC_UQ_UD {.block = Block::Mcc, .offset = 0x1a8}
 Interim result of the FOC, UD, and UQ term.
 
constexpr RegAddr MCC_FOC_UQ_UD_LIMITED {.block = Block::Mcc, .offset = 0x1a9}
 Interim result of the FOC, UD, and UQ term.
 
constexpr RegAddr MCC_FOC_UBETA_UALPHA {.block = Block::Mcc, .offset = 0x1aa}
 Interim result of the FOC, UALPHA, and UBETA term.
 
constexpr RegAddr MCC_FOC_UWY_UUX {.block = Block::Mcc, .offset = 0x1ab}
 Interim result of the FOC, UUX, and UWY term.
 
constexpr RegAddr MCC_FOC_UV {.block = Block::Mcc, .offset = 0x1ac}
 Interim result of the FOC, UV term.
 
constexpr RegAddr MCC_PWM_VX2_UX1 {.block = Block::Mcc, .offset = 0x1ad}
 Interim result PWM duty cycle UX1 and VX2.
 
constexpr RegAddr MCC_PWM_Y2_WY1 {.block = Block::Mcc, .offset = 0x1ae}
 Interim result PWM duty cycle WY1 and Y2.
 
constexpr RegAddr MCC_VELOCITY_FRQ {.block = Block::Mcc, .offset = 0x1af}
 Actual velocity measured by fixed frequency sampling.
 
constexpr RegAddr MCC_VELOCITY_PER {.block = Block::Mcc, .offset = 0x1b0}
 Actual velocity measured by period measurement.
 
constexpr RegAddr MCC_U_S_ACTUAL_I_S_ACTUAL {.block = Block::Mcc, .offset = 0x1c0}
 Actual motor voltage and current.
 
constexpr RegAddr MCC_P_MOTOR {.block = Block::Mcc, .offset = 0x1c1}
 Actual Power applied to motor (P = U×I).
 
constexpr RegAddr MCC_INPUTS_RAW {.block = Block::Mcc, .offset = 0x1c2}
 
constexpr RegAddr MCC_OUTPUTS_RAW {.block = Block::Mcc, .offset = 0x1c3}
 Raw output signals for each PWM channel high- and low-side.
 
constexpr RegAddr MCC_STATUS_FLAGS {.block = Block::Mcc, .offset = 0x1c4}
 
constexpr RegAddr MCC_GDRV_HW {.block = Block::Mcc, .offset = 0x1e3}
 Controls the general gate driver setup.
 
constexpr RegAddr MCC_GDRV_CFG {.block = Block::Mcc, .offset = 0x1e4}
 Controls the gate driver behavior and current settings.
 
constexpr RegAddr MCC_GDRV_TIMING {.block = Block::Mcc, .offset = 0x1e9}
 Sets the T_DRIVE sink and source times for all channels.
 
constexpr RegAddr MCC_GDRV_BBM {.block = Block::Mcc, .offset = 0x1ea}
 Controls the BBM_L and BBM_H times for all channels.
 
constexpr RegAddr MCC_GDRV_PROT {.block = Block::Mcc, .offset = 0x1eb}
 Contains the general and VGS related protection settings.
 
constexpr RegAddr MCC_GDRV_OCP_UVW {.block = Block::Mcc, .offset = 0x1ec}
 Configures the overcurrent protection for phases U, V and W.
 
constexpr RegAddr MCC_GDRV_OCP_Y2 {.block = Block::Mcc, .offset = 0x1ed}
 Configures the overcurrent protection for phase Y2.
 
constexpr RegAddr MCC_GDRV_PROT_EN {.block = Block::Mcc, .offset = 0x1ee}
 
constexpr RegAddr MCC_GDRV_STATUS_EN {.block = Block::Mcc, .offset = 0x1ef}
 Enables the reporting of the different fault events.
 
constexpr RegAddr MCC_GDRV_STATUS {.block = Block::Mcc, .offset = 0x1f0}
 Contains the status of the different fault events.
 
constexpr RegAddr MCC_GDRV_FAULT {.block = Block::Mcc, .offset = 0x1f1}
 Contains the status of the different fault events.
 
constexpr RegAddr MCC_ADC_I1_I0_EXT {.block = Block::Mcc, .offset = 0x200}
 External writable ADC value for phase I1, I0.
 
constexpr RegAddr MCC_ADC_I2_EXT {.block = Block::Mcc, .offset = 0x201}
 
constexpr RegAddr MCC_PWM_VX2_UX1_EXT {.block = Block::Mcc, .offset = 0x202}
 External writable PWM value.
 
constexpr RegAddr MCC_PWM_Y2_WY1_EXT {.block = Block::Mcc, .offset = 0x203}
 External writable PWM value.
 
constexpr RegAddr MCC_PWM_EXT_Y2_ALT {.block = Block::Mcc, .offset = 0x204}
 External writable PWM compare value for phase Y2_ALT.
 
constexpr RegAddr MCC_VOLTAGE_EXT {.block = Block::Mcc, .offset = 0x205}
 External writable parameter for open-loop voltage control mode, useful during system setup.
 
constexpr RegAddr MCC_PHI_EXT {.block = Block::Mcc, .offset = 0x206}
 Angle phi_e_ext and phi_m_ext for external writing into this register.
 
constexpr RegAddr MCC_VELOCITY_EXT {.block = Block::Mcc, .offset = 0x208}
 Actual velocity for external override.
 
constexpr RegAddr FAULT_STS {.block = Block::SysCtrl, .offset = 0x008}
 General system status flags.
 
constexpr RegAddr FAULT_R_INT {.block = Block::SysCtrl, .offset = 0x009}
 General system status flags.
 
constexpr RegAddr FAULT_R_ENA_F {.block = Block::SysCtrl, .offset = 0x00a}
 Mask for register FAULT_R_INT.
 
constexpr RegAddr ADC_SRC_CONFIG {.block = Block::Adc, .offset = 0x001}
 ADC sources config.
 
constexpr RegAddr ADC_SETUP {.block = Block::Adc, .offset = 0x002}
 ADC setup.
 
constexpr RegAddr ADC_STATUS {.block = Block::Adc, .offset = 0x005}
 ADC status bits.
 
constexpr RegAddr CSA_SETUP {.block = Block::Adc, .offset = 0x007}
 CSA setup.
 

Detailed Description

The registers by name.

Variable Documentation

◆ MCC_ABN_CPR

constexpr RegAddr tmc9660::regs::MCC_ABN_CPR {.block = Block::Mcc, .offset = 0x0a2}
inlineconstexpr

Decoder counts per revolution (CPR). ABN_CPR_INV needs to be set as well (ABN_CPR_INV = 2^32 / A.

◆ MCC_ADC_I2_EXT

constexpr RegAddr tmc9660::regs::MCC_ADC_I2_EXT {.block = Block::Mcc, .offset = 0x201}
inlineconstexpr

External writable ADC value for phase I2. Note that depending on the selection in register MCC_A.

◆ MCC_GDRV_PROT_EN

constexpr RegAddr tmc9660::regs::MCC_GDRV_PROT_EN {.block = Block::Mcc, .offset = 0x1ee}
inlineconstexpr

Enables the protection mechanism for the different fault events, note that the fault needs to be.

◆ MCC_INPUTS_RAW

constexpr RegAddr tmc9660::regs::MCC_INPUTS_RAW {.block = Block::Mcc, .offset = 0x1c2}
inlineconstexpr

Raw input signals PWM_IN, DIR, STP, Digital Hall Inputs, and digital ABN encoder inputs as raw s.

◆ MCC_PID_POSITION_TOLERANCE

constexpr RegAddr tmc9660::regs::MCC_PID_POSITION_TOLERANCE {.block = Block::Mcc, .offset = 0x187}
inlineconstexpr

Position controller ignores position errors smaller than PID_POSITION_TOLERANCE if EVENT_POS_REA.

◆ MCC_PWM_SWITCH_LIMIT

constexpr RegAddr tmc9660::regs::MCC_PWM_SWITCH_LIMIT {.block = Block::Mcc, .offset = 0x083}
inlineconstexpr

Determines a threshold for switching from three phase current measurement to two phase in Auto K.

◆ MCC_STATUS_FLAGS

constexpr RegAddr tmc9660::regs::MCC_STATUS_FLAGS {.block = Block::Mcc, .offset = 0x1c4}
inlineconstexpr

Status Flag BitVector Vector, individual status bits are set to '1' on error condition pulse '1'.