# Commutation of BLDC motors with respect to number of poles

I have a BLDC motor with HALL sensors. Datasheet reads the motor is 4 pole technology. Somewhere else it says "Number of pole pairs = 2". I can only assume that they both mean the same thing. It also features 3 HALL sensors at 120°

My question is, what would be fundamentally different in commutation of a BLDC motor with respect to the number of poles, like sequence or number of switching on/off for driver transistors?

For example, If I have a fully working code for a 6 pole or 8 pole motor, what would I need to do to make it work with 4 pole as well?