MConfigMaxSmall.cs 926 Bytes
namespace OS.Spin.Modle.BusinessLayer
{
    public class MConfigMaxSmall
    {
        private int _bandRate = 0;

        private int _comNum = 0;

        private int _byteSize = 8;

        public int BandRate
        {
            get { return _bandRate; }
            set { _bandRate = value; }
        }

        public int ComNum
        {
            get { return _comNum; }
            set { _comNum = value; }
        }

        public int ByteSize
        {
            get { return _byteSize; }
            set { _byteSize = value; }
        }

        /*
         * //串口初始化2
	my_Comm2 = CreateFile(_T("COM6"), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
	dcb2.DCBlength = sizeof(DCB);
	GetCommState(my_Comm2, &dcb2);
	dcb2.BaudRate = 38400;
	dcb2.ByteSize = 8;
	dcb2.Parity = NOPARITY;
	dcb2.StopBits = ONESTOPBIT;
	dcb2.fBinary = TRUE;
	dcb2.fParity = FALSE;
         */
    }
}