Torque control with H-Bridge via direction pin
Pins 3, 4 and 5 are interchangeable with no loss or deterioration in timing performance. Minimum input pulse width for all these inputs is defined as 1us (page 4 of the data sheet).

If you look at the logic output truth table on page 8 you can use these logic inputs in any combination you want to achieve the desired output functionality.