MOSFET Driver software for BLDC motor