Function tmc2209::vsense_cs_to_rms_current [−][src]
pub fn vsense_cs_to_rms_current(rsense: f32, vsense: bool, cs: u8) -> f32
Expand description
Use the selected sense resistor value (in ohms) and the current vsense
setting to convert
the given “current scale” value to an RMS current in mA.
Useful for converting CS_ACTUAL
to a human readable value.