C# Class BTool.CommManager

ファイルを表示 Open project: x893/BTool

Public Properties

Property Type Description
ComPort System.IO.Ports.SerialPort
DisplayMsgCallback DeviceForm.DisplayMsgDelegate

Public Methods

Method Description
ClosePort ( ) : bool
InitCommManager ( ) : void
InitCommManager ( string baud, string par, string sBits, string dBits, string name ) : void
OpenPort ( ) : bool
WriteData ( string msg ) : bool

Private Methods

Method Description
ByteToHex ( byte comByte ) : string
DataRxPollThread ( object threadData ) : void
HexToByte ( string msg ) : byte[]
comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Method Details

ClosePort() public method

public ClosePort ( ) : bool
return bool

InitCommManager() public method

public InitCommManager ( ) : void
return void

InitCommManager() public method

public InitCommManager ( string baud, string par, string sBits, string dBits, string name ) : void
baud string
par string
sBits string
dBits string
name string
return void

OpenPort() public method

public OpenPort ( ) : bool
return bool

WriteData() public method

public WriteData ( string msg ) : bool
msg string
return bool

Property Details

ComPort public_oe property

public SerialPort,System.IO.Ports ComPort
return System.IO.Ports.SerialPort

DisplayMsgCallback public_oe property

public DeviceForm.DisplayMsgDelegate DisplayMsgCallback
return DeviceForm.DisplayMsgDelegate