Savoy Comm リファレンス
プロパティ
BaudRate
ByteSize
ByteStream
Connect
Count
IniFileName
IniSection
Parity
PortNumber
StopBit
メソッド
AboutBox
LoadIniFile
Send
Setup
イベント
Received
|
Gets or sets the serial port number. Port number starts at 0. For example, comm #1 is 0, comm. #2 is 1.
Default value is 0.
構文
|
short GetPortNumber()
void SetPortNumber(short)
|
戻り値
使用例
|
.PortNumber = 0
.BaudRate = 9600
.ByteSize = 8
.StopBit = 0
.Parity = 0
.Connect = True
|
|
m_ctrl.SetPortNumber(0);
m_ctrl.SetBaudRate(9600);
m_ctrl.SetByteSize(8);
m_ctrl.SetStopBit(0);
m_ctrl.SetParity(0);
m_ctrl.SetConnect(true);
|
特記事項
Persistent property.
参照
|
|