AbstractSerialPortList

Abstract serial port lister implementation.

This class abstracts away the common logic associated with filtering port lists, but leaves the actual port listing logic to the classes which implement this abstract class.

Inheritors

SerialPortList
UsfaPortList

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun get(productId: Int, vendorId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided vendor and product ID.

abstract fun get(): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine.

Link copied to clipboard
open override fun getByProductId(productId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided product ID.

Link copied to clipboard
open override fun getByVendor(vendorId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided vendor ID.