Open FFBoard
Open source force feedback firmware
Loading...
Searching...
No Matches
TMC4671_configs.cpp File Reference

Go to the source code of this file.

Variables

const TMC4671HardwareTypeConf conf1_0
 
const TMC4671HardwareTypeConf conf1_2
 
const TMC4671HardwareTypeConf conf1_2_2
 
const TMC4671HardwareTypeConf conf1_3
 
const auto tmc4671_hw_configs_array = std::to_array<const TMC4671HardwareTypeConf>({conf1_3,conf1_2_2,conf1_2,conf1_0})
 
const TMC4671HardwareTypeConf defaultconf
 

Variable Documentation

◆ conf1_0

const TMC4671HardwareTypeConf conf1_0
Initial value:
= {
.name = "v1.0 AD8417 (1.5mOhm)",
.hwVersion = (uint8_t)TMC_HW_Ver::v1_0,
.adcOffset = 1000,
.thermistorSettings = {
.thermistor_R2 = 0,
.thermistor_R = 0,
.thermistor_Beta = 0,
.temp_limit = 90,
.temperatureEnabled = false,
},
.currentScaler = 2.5 / (0x7fff * 60.0 * 0.0015),
.brakeLimLow = 52400,
.brakeLimHigh = 52800,
.vmScaler = (2.5 / 0x7fff) * ((1.5+71.5)/1.5),
.vSenseMult = VOLTAGE_MULT_DEFAULT,
.clockfreq = 25e6,
.bbm = 20,
}
float vSenseMult

Definition at line 16 of file TMC4671_configs.cpp.

◆ conf1_2

const TMC4671HardwareTypeConf conf1_2
Initial value:
= {
.name = "v1.2 AD8417 (1.5mOhm)",
.hwVersion = (uint8_t)TMC_HW_Ver::v1_2,
.adcOffset = 1000,
.thermistorSettings = {
.thermistor_R2 = 1500,
.thermistor_R = 22000,
.thermistor_Beta = 4300,
.temp_limit = 90,
.temperatureEnabled = true,
},
.currentScaler = 2.5 / (0x7fff * 60.0 * 0.0015),
.brakeLimLow = 50700,
.brakeLimHigh = 50900,
.vmScaler = (2.5 / 0x7fff) * ((1.5+71.5)/1.5),
.vSenseMult = VOLTAGE_MULT_DEFAULT,
.clockfreq = 25e6,
.bbm = 20,
}

Definition at line 35 of file TMC4671_configs.cpp.

◆ conf1_2_2

const TMC4671HardwareTypeConf conf1_2_2
Initial value:
= {
.name = "v1.2.2 LEM 10 (80mV/A)",
.hwVersion = (uint8_t)TMC_HW_Ver::v1_2_2,
.adcOffset = 0,
.thermistorSettings = {
.thermistor_R2 = 1500,
.thermistor_R = 10000,
.thermistor_Beta = 4300,
.temp_limit = 90,
.temperatureEnabled = true,
},
.currentScaler = 2.5 / (0x7fff * 0.08),
.brakeLimLow = 50700,
.brakeLimHigh = 50900,
.vmScaler = (2.5 / 0x7fff) * ((1.5+71.5)/1.5),
.vSenseMult = VOLTAGE_MULT_DEFAULT,
.clockfreq = 25e6,
.bbm = 20,
}

Definition at line 54 of file TMC4671_configs.cpp.

◆ conf1_3

const TMC4671HardwareTypeConf conf1_3

Definition at line 73 of file TMC4671_configs.cpp.

◆ defaultconf

const TMC4671HardwareTypeConf defaultconf

Definition at line 113 of file TMC4671_configs.cpp.

◆ tmc4671_hw_configs_array

const auto tmc4671_hw_configs_array = std::to_array<const TMC4671HardwareTypeConf>({conf1_3,conf1_2_2,conf1_2,conf1_0})

Definition at line 107 of file TMC4671_configs.cpp.