Mental functions that when altered produce states such as clouding of consciousness, stupor or coma.