SerialRadioTransport

class SerialRadioTransport(callback: RadioTransportCallback, scope: CoroutineScope, usbRepository: UsbRepository, address: String) : StreamTransport(source)

An Android USB/serial RadioTransport implementation.

Constructors

Link copied to clipboard
constructor(callback: RadioTransportCallback, scope: CoroutineScope, usbRepository: UsbRepository, address: String)

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open fun flushBytes()

Flushes buffered bytes to the underlying stream. No-op by default.

Link copied to clipboard
open override fun handleSendToRadio(p: ByteArray)
Link copied to clipboard
open override fun keepAlive()
Link copied to clipboard
open override fun sendBytes(p: ByteArray)

Writes raw bytes to the underlying stream (serial port, TCP socket, etc.).

Link copied to clipboard
open override fun start()