dm_tty_baud_rate_from_value Function

public function dm_tty_baud_rate_from_value(value, error) result(baud_rate)

Returns baud rate enumerator from numeric value. If the value is invalid, returns 0 by default and sets optional argument error to E_INVALID.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: value

Numeric baud rate value.

integer, intent(out), optional :: error

Error code.

Return Value integer