C# 클래스 ControlSystem.SerialSTK

Class for functions to communicating with the STK kit.(Serial communication.)
파일 보기 프로젝트 열기: syre/SortingIndustrialRobot 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : bool

Closes for communication

Open ( ) : bool

Opens for communication

ReadADC ( ) : double

Reads an ADC value

SerialSTK ( int baud = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System

Classconstructor

메소드 상세

Close() 공개 메소드

Closes for communication
public Close ( ) : bool
리턴 bool

Open() 공개 메소드

Opens for communication
public Open ( ) : bool
리턴 bool

ReadADC() 공개 메소드

Reads an ADC value
public ReadADC ( ) : double
리턴 double

SerialSTK() 공개 메소드

Classconstructor
public SerialSTK ( int baud = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System
baud int baudrate (has to be the same as the STK-kit)
parity Parity Parity
dataBits int Databits
stopBits StopBits Stopbits
리턴 System