uart_parse_options(9)

uart_parse_options9

Parse serial port baud/parity/bits/flow control.

Usage

void uart_parse_options(char * options, int * baud, int * parity, int * bits, int * flow);

Arguments

options

pointer to option string

baud

pointer to an 'int' variable for the baud rate.

parity

pointer to an 'int' variable for the parity.

bits

pointer to an 'int' variable for the number of data bits.

flow

pointer to an 'int' variable for the flow control character.

Overview

uart_parse_options decodes a string containing the serial console options. The format of the string is <baud><parity><bits><flow>,

Eg

115200n8r

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.