I need to communicate with a piece of hardware over a USB virtual serial device. All I need is it to pass raw bytes back and forth at speed with the right UART settings, I do not ever want to use a terminal. The proof of concept software using termios isn't configuring the right bits and doesn't work unless I feed in a magic config string over stty before running.
I attempted to replicate every setting from stty that appears in the POSIX man page for termios.h and it still doesn't work, and now has a screen full of boilerplate flag setting code.
What should be the minimum configuration using termios.h to get a terminal-less serial port? And if there's any additions for Linux specifically I'll need to know those.