On what basis is obligatory fasting subdivided?

Kitab al-Sawm: Categories of Fasting and Rules of Intention