|
sub_rs_set_config |
Top Previous Next |
| Got to SUB-20 page |
|
Synopsis int sub_rs_set_config( sub_handle hndl, int config, int baud)
Configure SUB-20 UART (Universal Asynchronous Receiver Transmitter). Parameters
To disable UART provide configuration without RS_RX_ENABLE and RS_TX_ENABLE.
Return value On success function returns 0. Otherwise error code. Example /* Set 9660 bps, 8 data bits, no parity, 1 stop bit */ sub_rs_set_config( hndl, RS_RX_ENABLE|RS_TX_ENABLE|RS_CHAR_8|RS_PARITY_NONE|RS_STOP_1, 9600 );
|