jacdac.serial

Submodules

Package Contents

Classes

SerialClient

An asynchronous serial communication service capable of sending and receiving buffers of data.

class jacdac.serial.SerialClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

An asynchronous serial communication service capable of sending and receiving buffers of data.
  • Settings default to 115200 baud 8N1.

Implements a client for the Serial service.

property connected: bool | None

Indicates if the serial connection is active.,

property connection_name: str | None

(Optional) User-friendly name of the connection.,

property baud_rate: int | None

A positive, non-zero value indicating the baud rate at which serial communication is be established., _: baud

property data_bits: int | None

The number of data bits per frame. Either 7 or 8.,

property stop_bits: int | None

The number of stop bits at the end of a frame. Either 1 or 2., _: #

property parity_mode: jacdac.serial.constants.SerialParityType | None

The parity mode.,

property buffer_size: int | None

A positive, non-zero value indicating the size of the read and write buffers that should be created., _: #

send(data: bytes) None

Send a buffer of data over the serial transport.