The NCX functions via a bidirectional exchange mechanism. Under normal physiological conditions, it mainly operates in a forward mode, extruding calcium from the cell in exchange for sodium ions. However, under certain conditions such as ischemia or during high intracellular sodium levels, it can reverse its mode of operation, importing calcium into the cell.