yaq-yeps/307


uses-uart

YEP:307
Title:uses-uart
Authors:Blaise Thompson
Status:accepted
Tags:trait
Post-History:2020-04-22, 2020-07-14, 2022-06-30

Abstract

This defines the interface for configuring hardware which communicates over UART style serial. See built documentation at at yaq.fyi.

Table of Contents

Motivation

UART is a common subform of serial communication which writes to a serial port at a specific baud rate. This form of serial communication is generally used for RS-232 and RS-485 style serial as well as some forms of board level GPIO serial on certain computers.

Proposal

config: serial_port (string)

This identifies which serial port to use. On Windows this is generally something like COM4, on Linux it would look like /dev/ttyUSB0.

config: baud_rate (int)

The speed of UART communication. Common baud rates include 9600, 19200, and 115200.

Discussion

Discussion can be found on the gitlab issue for this YEP.

Copyright

This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive.


built 2022-08-09 20:27:49                                      CC0: no copyright