I have some confusion about the defintions , header files, how to make them can I make them just by saving them on a C++ compiler , is an Application program interface API a way to have serial port communication really I am confused plz help
You can make a header file in notepad if you want and save it as whatever.h
Probably you have header files that provide the function defintions for serial port communication.
First, let us know which compiler you are using. Bet to give you some idea:
- Most compilers come with standard libraries that make it very easy to configure and use serial communication.
- The APIs are declared in corresponding header files.
- If you have to use a specific API, you 'include' the corresponding header file in your .c or .cpp file and then use these functions to open, configure, read from/write to, and close the serial port. (a common example: to use console IO including keyboard inputs, I would include conio.h and while compiling, see that that the library path for compilation includes the standard library libc.lib)
Hence, more information is required to give specific suggestions.