The battery current can be measured using this circuit, as we know that the battery current can be positive during discharging and negative during charging this circuit will help designer to determine the current according, also once the battery current is known limiting can be done to protect the controller.