Motor variable determination based on the ON-resistance of a power switch, i.e. the voltage across the switch is measured during the ON state of the switch and used to determine the current in the motor and to calculate the speed