Application details
...

libserialport

https://sigrok.org/wiki/Libserialport

libserialport is a minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports.