The BLDC commutation sequence will never switch the high-side device and the low-side device in a phase, at the same time. At this point we are ready to start building the motor commutation control code. Commutation consists of linking the input sensor state with the corresponding drive state.