Lung volumes and capacities refer to phases of the respiratory cycle; lung volumes are directly measured while capacities are inferred.
The lungs have a number of metabolic functions in addition to their functions in gas exchange.