triven:
a link to any such code you may have found which suits my specifications. . . . . .
You're being silly.
Of course I can't refer you to any example code that shows how to link your specific remote control system to your specific type of motor. I doubt that anybody else in the world has implemented that specific solution.
However, when you break the solution down into its constituent parts they are all commonly done and there are plenty of examples around. I've already listed the functions that I would break it down into. No, I'm not going to link you to an example for each function, since some of them are trivially easy to find and the others are not hard to find. I'm not prepared to do the work for you if you aren't going to make even a token effort to work these things out for yourself.