Exemplo n.º 1
0
        public void SetTimeouts(int ReadIntervalTimeout, int ReadTotalTimeoutMultiplier, int ReadTotalTimeoutConstant,
                                int WriteTotalTimeoutMultiplier, int WriteTotalTimeoutConstant)
        {
            SerialTimeouts Timeouts = new SerialTimeouts(ReadIntervalTimeout, ReadTotalTimeoutMultiplier, ReadTotalTimeoutConstant,
                                                         WriteTotalTimeoutMultiplier, WriteTotalTimeoutConstant);

            unsafe { SetCommTimeouts(m_hFile, &Timeouts); }
        }
Exemplo n.º 2
0
 static unsafe extern bool SetCommTimeouts(int hFile, SerialTimeouts* lpCommTimeouts);
Exemplo n.º 3
0
        public void SetTimeouts(int ReadIntervalTimeout, int ReadTotalTimeoutMultiplier, int ReadTotalTimeoutConstant, 
								int WriteTotalTimeoutMultiplier, int WriteTotalTimeoutConstant)
        {
            SerialTimeouts Timeouts = new SerialTimeouts(ReadIntervalTimeout, ReadTotalTimeoutMultiplier, ReadTotalTimeoutConstant,
                                         WriteTotalTimeoutMultiplier, WriteTotalTimeoutConstant);
            unsafe { SetCommTimeouts(m_hFile, &Timeouts); }
        }