WARNING: This page is about a different car, the 2002 Toyota Prius. However, it is still accessible from the selected car via links, so may be relevant.
The battery ECU inputs signals from a current sensor in the system main relay and controls the output current.