comParity

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
   comBits
   comBps
   comClose
   comFlow
   comInputChars
   comOpen
   comParity
   comPurgeInput
   comRead
   comReadChar
   comReadTimeout
   comStops
   comWaitForOutput
   comWrite
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
comParity(
  const handle,     // async handle
  [const parity])   // parity code: N, E, O, M, S

Query and/or set the parity mode. If parameter parity is omitted, the current setting is queried. Valid parity code settings:

Code Parity
N None
E Even
O Odd
M Mark (always 1)
S Space (always 0)

Examples:

var par = comParity(hdl);  // query current setting
comParity(hdl, 'e'); // set parity even
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>