Motor Control application for BLDC and Brushed DC drives on SOMANET devices