Single‐chamber leadless pacemaker for atrial synchronous or ventricular pacing