[ECOS] BREAK handling in serial driver (SA1110)

Jonathan Larmour jlarmour@redhat.com
Tue Oct 16 14:48:00 GMT 2001


Andreas Bürgel wrote:
> > and indicate_status calls into serial_indicate_status in
> > io/serial/current/src/common/serial.c
> 
> What is not clear to us is the interface between the application and the
> driver stuff to read the line status. In other words the app needs a
> function "serial_get_line_status()", or something similar, to get an
> cyg_serial_line_status_t variable.

There isn't an API function to interrogate the current status - line status
is one of the things where the state changes are important, not the state
itself. Instead line status changes are indicated by a callback function
set using cyg_io_set_config(..., CYG_IO_SET_CONFIG_SERIAL_STATUS_CALLBACK,
&callback_info, sizeof(callback_info));

where the callback_info has type cyg_serial_line_status_callback_t (see
serialio.h). The code's in serial.c.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list