Documentation for driver/channel/SerialDataChannel.kt

class SerialDataChannel

A byte channel to communicate with serial devices

This channel provides an interface to a serial port, facilitating byte oriented input output to serial devices.

since

1.0.0

author

IFS Institute for Software

fun constructor(fPort: UsbSerialPort, fConfiguration: Configuration)

Main constructor

static fun create(context: Context, port: UsbSerialPort, configuration: Configuration) : SerialDataChannel?

Create a new channel on the given port with the given [configuration][Configuration]

Parameters
  • context – The application context to use with the port

  • port – The USB-Serial port to attach to the channel

  • configuration – The USB-Serial configuration for the channel