A library to control a switched reluctance machine.