# setport

An OS specific routine to configure and open a serial port. There are different implementations for LINUX and WIN32. While the respective implementation of setport() is part of LIBNODAVE dynamic library, you could use your own routine and copy the resulting filedescriptor/handle to the members of your _daveOSserialType structure.

        int setPort(char * name, char* baud,char parity);

#### Parameters:

- name: The name of the serial port known to the OS, e.g. COM1 or /dev/ttyS0.
- baud: A baudrate.
- parity: One of the letters E,e,O,o,N or n meaning even, odd or none.