Intrinsic-95 GetParams

Top  Previous  Next

95: Value:= GetParams(MainType, SubType);

 

This intrinsic returns the value of various system parameters. Parameters are specified by a MainType and SubType.

Main Type = 0 Serial Port

SubType

 

 

0

Baud Rate

0=110, 1=300, 2=600, 3=1200, 4=2400, 5=4800, 6=9600, 7=14400, 8=19200, 9=38400, 10=56000, 11=57600, 12=115200

1

Data Bits

0=Four, 1=Five, 2=Six, 3=Seven, 4=Eight

2

StopBits

0=One, 1=1.5, 2= Two

3

Parity

0=None, 1=Odd, 2=Even, 3=Mark, 4=Space

4

Port

0=Port-1, 1=Port-2 ... 255=Port-256, 257=none

5

Buffer Size

Size of Input and Output Buffer in bytes

6

Input Count

Number of Characters waiting the input buffer