Function tmc2209::rms_current_to_vsense_cs[][src]

pub fn rms_current_to_vsense_cs(rsense: f32, ma: f32) -> (bool, u8)
Expand description

Use the selected sense resistor value (in ohms) and the motor’s rated current (in mA) to determine the recommended vsense and “current scale” (for IRUN) values.