Control bipolar stepper motor with SanMotion driver from arduino

Hello,
I have a bipolar stepper motor with a SanMotion BS1D200 series controller.
The controller has:
three 4-5.5V digital inputs: CW, CCW & Power down
two OC digital outputs: Phase origin monitor, Alarm output.
I was wondering if the Stepper or AccelStepper libraries could be used to use this controller with an Arduino Micro? How should the both be connected together?

Thank for any hints.

I know of no Arduino library that can control that kind of driver. AccelStepper and the MobaTools stepper libraries are for step/dir drivers. Stepper is for 2 and 4 wire drivers that control the stepper coils.

I have managed to make the motor work just by generating a PWM pulse as described here:

https://passionelectronique.fr/introduction-timer-arduino/

But of course this is not ideal as you cannot set accelerations / decelerations.