Hello
You can find this function in the Altitech library: http://bib.altitech.free.fr/
Ok, there is not the standard I want so the module and the number of teeth desired.
However, it is configurable: http://bib.altitech.free.fr/aide_altitech/aide_altitech.htm