The trip computer obtains information about the quantity of fuel injected from the engine control module (ECM).
This information is used to display fuel consumption.