public static Constants.FT_STATUS FT_SetDataCharacteristics(uint ftHandle, BitsPerWord uWordLength, StopBits uStopBits, Parity uParity) { switch (Environment.OSVersion.Platform) { case PlatformID.MacOSX: { break; } case PlatformID.Unix: { return(Linux.Methods.FT_SetDataCharacteristics(ftHandle, uWordLength, uStopBits, uParity)); } case PlatformID.Win32NT: case PlatformID.Win32S: case PlatformID.Win32Windows: case PlatformID.WinCE: { return(Windows.Methods.FT_SetDataCharacteristics(ftHandle, uWordLength, uStopBits, uParity)); } case PlatformID.Xbox: { break; } } throw new PlatformNotSupportedException(); }
public void SetDataCharacteristics(BitsPerWord bits, StopBits stopBits, Parity parity) { Internal.Constants.FT_STATUS status = Internal.Methods.FT_SetDataCharacteristics(mvarHandle, bits, stopBits, parity); FT_StatusToException(status); }
public static extern Constants.FT_STATUS FT_SetDataCharacteristics(uint ftHandle, BitsPerWord uWordLength, StopBits uStopBits, Parity uParity);