Embedded field-oriented control library for sensorless and sensored PMSM motors, offering SVPWM-based modes with single-loop or cascaded position, speed, and current control. Optimized math and configurable PID and LADRC controllers target applications from basic speed regulation to high-performance servo drives.