I have to port some C code from windows to linux, this code will comunicate with a filter wheel on the serial port( this a simple step motor that moves the wheel around, to differant positions and has a home position.)
I do not know how to do this, so some information on how I would go about this would be helpful. The windows source code was written in C.
It first sets the device(number of filters,steps etc...)
Opens the port
Gets the port config
Has 2 functions to write and read data to the port
Closes the port
Sets the filterposition and has a stepmotor function
Any help from similiar serial port projects or code that I could view that would help with these 6 tasks would be most helpful.
thanks a lot.