The physiology of cardiac muscle shares many similarities with that of skeletal muscle. The primary function of both muscle types is to contract, and in both cases a contraction begins with a characteristic flow of ions across the cell membrane known as an action potential. The action potential subsequently triggers muscle contraction by increasing the concentration of calcium within the cytosol.