Accessing a Serial Comm

Rat

Well-known member
Joined
Aug 2, 2005
Messages
72
Location
Somewhere between 0 and 1
Programming Experience
1-3
VB.NET:
port.Settings.BaudRate = Convert.ChangeType(BaudRates.CBR_2400, TypeCode.UInt32, provider)
port.Settings.Parity = Convert.ChangeType(Parity.even, TypeCode.UInt32, provider)
port.Settings.StopBits = Convert.ChangeType(StopBits.two, TypeCode.UInt32, provider)
 port.Settings.ByteSize = Convert.ChangeType(7, TypeCode.UInt32, provider)

Is there a more efficient way of doing the conversion ?

VB.NET:
public enum BaudRates : uint
	{
		CBR_110	= 110,
		CBR_300	= 300,
		CBR_600	= 600,
		CBR_1200   = 1200,
		CBR_2400   = 2400,
		CBR_4800   = 4800,
		CBR_9600   = 9600,
		CBR_14400  = 14400,
		CBR_19200  = 19200,
		CBR_38400  = 38400,
		CBR_56000  = 56000,
		CBR_57600  = 57600,
		CBR_115200 = 115200,
		CBR_128000 = 128000,
		CBR_256000	= 256000
	}

The dll .. that was compiled together with the project ..

Some help, would be helpful bros ..
 
Back
Top