---
name: "uart_parse_options"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/uart_parse_options"
---

# uart\_parse\_options(9)

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

## NAME

uart\_parse\_options - Parse serial port baud/parity/bits/flow control.

## SYNOPSIS

**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.

## DESCRIPTION

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

## EG

115200n8r

## COPYRIGHT
