comp.lang.ada
 help / color / mirror / Atom feed
From: jmanghan@dt088n7d.san.rr.com (Jeetendra Manghani)
Subject: Posix/serial/baud_rate issue
Date: Wed, 18 Apr 2001 00:39:22 GMT
Date: 2001-04-18T00:39:22+00:00	[thread overview]
Message-ID: <9bik19$6m8$1@dt088n7d.san.rr.com> (raw)

Hello,

I posted a while back about ada packages that aid in serial
programming.  Someone showed me some packages, POSIX_IO, and
POSIX_TERMINAL_FUNCTIONS.

Well, now I get an error when trying to set the baud rate for
some reason.

I open a port and then "Get_terminal_characteristics", use
"Define_Input_Baud_Rate" with POSIX_TERMINAL_FUNCTIONS.B38400
as the baud_rate, and then do a "Set_Terminal_Characteristics".

This gives me an error 22, which is EINVAL (Invalid_Argument).

Is the "Define" function overwriting the TERMINAL_CHARACTERISTICS
structure?  I'd think not since that parameter is a "in out" param.

Any ideas what I may be doing wrong?

Thanks,
Jee



             reply	other threads:[~2001-04-18  0:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18  0:39 Jeetendra Manghani [this message]
2001-04-18  8:32 ` Posix/serial/baud_rate issue David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox