C# Класс HouseOfTheFuture.RF24Communicator.SerialCommunicationModule

Показать файл Открыть проект

Открытые методы

Метод Описание
ListAvailablePorts ( ) : Task>

ListAvailablePorts - Use SerialDevice.GetDeviceSelector to enumerate all serial devices - Attaches the DeviceInformation to the ListBox source so that DeviceIds are displayed

SelectDevice ( DeviceInformation device ) : void

comPortInput_Click: Action to take when 'Connect' button is clicked - Get the selected device index and use Id to create the SerialDevice object - Configure default settings for the serial port - Create the ReadCancellationTokenSource token - Start listening on the serial port input

SerialCommunicationModule ( ) : System

Приватные методы

Метод Описание
OnLineRead ( object sender, string e ) : void

Описание методов

ListAvailablePorts() публичный Метод

ListAvailablePorts - Use SerialDevice.GetDeviceSelector to enumerate all serial devices - Attaches the DeviceInformation to the ListBox source so that DeviceIds are displayed
public ListAvailablePorts ( ) : Task>
Результат Task>

SelectDevice() публичный Метод

comPortInput_Click: Action to take when 'Connect' button is clicked - Get the selected device index and use Id to create the SerialDevice object - Configure default settings for the serial port - Create the ReadCancellationTokenSource token - Start listening on the serial port input
public SelectDevice ( DeviceInformation device ) : void
device Windows.Devices.Enumeration.DeviceInformation
Результат void

SerialCommunicationModule() публичный Метод

public SerialCommunicationModule ( ) : System
Результат System