Control motor pwm signal from companion computer

Hi,
Is it possible to sent pwm signal to the motor every sample time from the companion computer?
The goal is to do the control from the companion computer.
Is MAVLINK a possibility?
Is it fast enough?
Thanks in advance