Cygiosetconfig, Cyg_io_set_config – Comtrol eCos User Manual

Page 374

Advertising
background image

Chapter 16. Serial driver details

CYG_IO_GET_CONFIG_SERIAL_WRITE_BLOCKING

Buf type:

cyg_uint32 (values 0 or 1)

Function:

This function will read back the blocking-mode setting for write calls on this device. This call is only

available if the configuration option

CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING

is enabled.

cyg_io_set_config

cyg_io_set_config(handle, key, buf,len)

This function is used to update or change runtime configuration of a port.

CYG_IO_SET_CONFIG_SERIAL_INFO

Buf type:

cyg_serial_info_t

Function:

This function updates the information for the driver and hardware. The information contains fields for
hardware baud rate, number of stop bits, and parity mode. It also includes a set of flags that control the
port, such as hardware flow control.

CYG_IO_SET_CONFIG_SERIAL_READ_BLOCKING

Buf type:

cyg_uint32 (values 0 or 1)

Function:

This function will set the blocking-mode for read calls on this device. This call is only available if the
configuration option

CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING

is enabled.

270

Advertising