In a DC motor, the device which is used to change the direction of current through the coil after every half rotation is called
commutator
In a DC motor, the split rings help to change the direction of current through the coil after every half rotation. For this reason, it is also called split ring commutator.