Could I have a special driver which just mirrors the data sent to it (not like a printer driver, which does a lot else as well)? I would also need example code to use the driver.
I'm really not into assembly, registers, or baud rate calculations.
Essentially what I want is:
Note: All commands are imaginary only!!!
I'm really not into assembly, registers, or baud rate calculations.
Essentially what I want is:
Code:
/*Open serial port.*/
OpenPort(handle *port, int portID);
/*Set baud rate and parity.*/
SetParity(handle port, int parityconstant);
SetBaud(handle port, int baudrate);
/*Send some data.*/
Send(byte data, handle port);
/*Receive some data.*/
data = Receive(handle port);