DRV8313 based BLDC controller