Controll Motor (t200) with own modul

Hey,

We are trying to write our own Modul to control the T200 Motor via PWM. Therefore we managed to get data via UART.

Which Modul can we use to control the PWM output?
(We are searching for a more high level api.)

Is there maybe a code example that we can use?

I appreciate all help, cause