SDAA075 October 2025 CC2340R5
Each time a hall sensor GPIO transitions from high to low or low to high, the motor commutation tables are used to select the next motor phase state. Thus the reversePhaseTable or forwardPhaseTable arrays take the total bitmask value of all three hall sensors and determine the next case to be serviced by forwardDirection or reverseDirection functions. These functions simply set each motor phase to the correct and expected configuration accordingly using direct hardware register commands.