Athena board serial port

Hi, I am using athena board and QnX. I want to write a C++ program to output some texts and some logic signals to the serial ports. Could anybody show me the way to do it? I am pretty new to QnX. Thanks a lot.