KlassenKlassenKlassenKlassen | | | | Operatoren

get_serial_paramget_serial_paramGetSerialParamget_serial_paramGetSerialParamGetSerialParam (Operator)

Name

get_serial_paramget_serial_paramGetSerialParamget_serial_paramGetSerialParamGetSerialParam — Auslesen der Parameter eines seriellen Geräts.

Signatur

get_serial_param( : : SerialHandle : BaudRate, DataBits, FlowControl, Parity, StopBits, TotalTimeOut, InterCharTimeOut)

Herror get_serial_param(const Hlong SerialHandle, Hlong* BaudRate, Hlong* DataBits, char* FlowControl, char* Parity, Hlong* StopBits, Hlong* TotalTimeOut, Hlong* InterCharTimeOut)

Herror T_get_serial_param(const Htuple SerialHandle, Htuple* BaudRate, Htuple* DataBits, Htuple* FlowControl, Htuple* Parity, Htuple* StopBits, Htuple* TotalTimeOut, Htuple* InterCharTimeOut)

Herror get_serial_param(const HTuple& SerialHandle, Hlong* BaudRate, Hlong* DataBits, char* FlowControl, char* Parity, Hlong* StopBits, Hlong* TotalTimeOut, Hlong* InterCharTimeOut)

Hlong HSerial::GetSerialParam(HTuple* DataBits, HTuple* FlowControl, HTuple* Parity, HTuple* StopBits, HTuple* TotalTimeOut, HTuple* InterCharTimeOut) const

void GetSerialParam(const HTuple& SerialHandle, HTuple* BaudRate, HTuple* DataBits, HTuple* FlowControl, HTuple* Parity, HTuple* StopBits, HTuple* TotalTimeOut, HTuple* InterCharTimeOut)

Hlong HSerial::GetSerialParam(Hlong* DataBits, HString* FlowControl, HString* Parity, Hlong* StopBits, Hlong* TotalTimeOut, Hlong* InterCharTimeOut) const

void HOperatorSetX.GetSerialParam(
[in] VARIANT SerialHandle, [out] VARIANT* BaudRate, [out] VARIANT* DataBits, [out] VARIANT* FlowControl, [out] VARIANT* Parity, [out] VARIANT* StopBits, [out] VARIANT* TotalTimeOut, [out] VARIANT* InterCharTimeOut)

Hlong HSerialX.GetSerialParam(
[out] Hlong* DataBits, [out] BSTR* FlowControl, [out] BSTR* Parity, [out] Hlong* StopBits, [out] Hlong* TotalTimeOut, [out] Hlong* InterCharTimeOut)

static void HOperatorSet.GetSerialParam(HTuple serialHandle, out HTuple baudRate, out HTuple dataBits, out HTuple flowControl, out HTuple parity, out HTuple stopBits, out HTuple totalTimeOut, out HTuple interCharTimeOut)

int HSerial.GetSerialParam(out int dataBits, out string flowControl, out string parity, out int stopBits, out int totalTimeOut, out int interCharTimeOut)

Beschreibung

get_serial_paramget_serial_paramGetSerialParamget_serial_paramGetSerialParamGetSerialParam liefert die aktuellen Parameter des seriellen Geräts, das in SerialHandleSerialHandleSerialHandleSerialHandleSerialHandleserialHandle übergeben wird, zurück. Für eine Beschreibung der Parameter der seriellen Schnittstelle siehe set_serial_paramset_serial_paramSetSerialParamset_serial_paramSetSerialParamSetSerialParam.

Parallelisierung

Dieser Operator modifiziert den Zustand des folgenden Eingabeparameters:

Der Wert dieses Parameters darf nicht über mehrere Threads verwendet werden.

Parameter

SerialHandleSerialHandleSerialHandleSerialHandleSerialHandleserialHandle (input_control, Zustand wird modifiziert)  serial_id HSerial, HTupleHTupleHSerial, HTupleHSerialX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle der seriellen Schnittstelle.

BaudRateBaudRateBaudRateBaudRateBaudRatebaudRate (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Übertragungsgeschwindigkeit der seriellen Schnittstelle.

DataBitsDataBitsDataBitsDataBitsDataBitsdataBits (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Datenbits der seriellen Schnittstelle.

FlowControlFlowControlFlowControlFlowControlFlowControlflowControl (output_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Datenflusskontrolle der seriellen Schnittstelle.

ParityParityParityParityParityparity (output_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Parität der seriellen Schnittstelle.

StopBitsStopBitsStopBitsStopBitsStopBitsstopBits (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Stopbits der seriellen Schnittstelle.

TotalTimeOutTotalTimeOutTotalTimeOutTotalTimeOutTotalTimeOuttotalTimeOut (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Gesamt-Timeout der seriellen Schnittstelle in ms.

InterCharTimeOutInterCharTimeOutInterCharTimeOutInterCharTimeOutInterCharTimeOutinterCharTimeOut (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Inter-character Timeout der seriellen Schnittstelle in ms.

Ergebnis

Wenn die Parameter korrekt sind und die Parameter des Gerätes gelesen werden konnten, liefert get_serial_paramget_serial_paramGetSerialParamget_serial_paramGetSerialParamGetSerialParam den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_serialopen_serialOpenSerialopen_serialOpenSerialOpenSerial

Nachfolger

read_serialread_serialReadSerialread_serialReadSerialReadSerial, write_serialwrite_serialWriteSerialwrite_serialWriteSerialWriteSerial

Siehe auch

set_serial_paramset_serial_paramSetSerialParamset_serial_paramSetSerialParamSetSerialParam

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren