A detent is a device used to mechanically resist or arrest the rotation of a wheel, axle, or spindle. Such a device can be anything ranging from a simple metal pin to a machine. The term is also used for the method involved.
Detents are for example used to simply arrest rotation in one direction or to intentionally divide a rotation into discrete increments.
Read more about Detent: Examples