I'd like to know if there are a couple of API calls
out there that I can use. I need one to send
a carriage return and another to read data from
a serial port. Does anyone know if these exist?
No, the "r" is for "read" because you want to open the port
for a read operation.
If you want to send a carriage-return somewhere (e.g. to a port), open the port with "w" for "write" and use any write
function like WriteFile to write the correct ascii sequence
(maybe you will recognize the term "escape sequence".
Anyway, the sequence is usually platform-dependent and is defined in the library's header files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.