Herunterladen Inhalt Inhalt Diese Seite drucken

W&T 58031 Handbuch Seite 135

Inhaltsverzeichnis

Werbung

W&T
Die Struktur BOX_CNTRL
In der Struktur BOX_CNTRL (20 Bytes) wird die Konfiguration
der Schnittstelle gespeichert (Baudrate, Datenbits, Parity,
Stopbits, Handshakeverhalten, Timingwerte etc.). Hier kann
Einfluß auf die Parameter und deren Speicherung genommen
werden.
typedef struct _box_cntrl
{
struct_baud_fifo
{
char baud
char fifo_aktiv :1;
char fifo
};
char bits;
char bits;
word
RLS_time_out;
word
CTS_time_out;
word
DSR_time_out;
char
XONChar;
char
XOFFChar;
word
hs_on_limit;
word
hs_off_limit;
char PEChar;
Irrtum und Änderung vorbehalten
Erweiterte Dienste des Com-Servers
:5;
// Baud rate for channel
// 11 = 230400
// 14 = 153600
// 15 = 115200
// 0 = 57600
// 1 = 38400
// 2 = 19200
// 3 = 9600
// 5 = 4800
// Baudrates are coded within the first 5 bits
// 0 = FIFO disabled, 1 = FIFO enabled
:2;
// Send/Receive FIFO trigger
// 0 = 8 / 8
// 1 = 16 / 16
// 2 = 32 / 56
// 3 = 56 / 60
// models 58631 and 58431 have a fix FIFO
// trigger so they ignore these bits
//000x.xxxx
data bits, stop bits, parity
//
//
//
//
//
//
//Timer before f_rlsd_time will be set
//Timer before f_cts_time will be set
//Timer before f_dsr_time will be set
//Char excepted as XON
//Char excepted as XOFF
//if number of free bytes in ring buffer
// > hs_on_limit then clearing handshake stop
//if number of free bytes in ring buffer
// < hs_off_limit then setting handshake stop
//Replace this char if serial parity error (function
//must be enabled first by setting f_flags.f_pechar= 1)
6 = 2400
7 = 1200
8 = 600
9 = 300
10 = 150
16 = 110
12 = 75
13 = 50
10 = 7 data bits
11 = 8 data bits
0 = 1
1 = 1½, 2 stop bits
1 = parity enable
0 = odd, 1 = even parity
135

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis