get_serial_paramT_get_serial_paramGetSerialParamGetSerialParam (Operator)
Name
get_serial_paramT_get_serial_paramGetSerialParamGetSerialParam
— Auslesen der Parameter eines seriellen Geräts.
Signatur
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
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_paramGetSerialParamGetSerialParamGetSerialParam
liefert die aktuellen Parameter des
seriellen Geräts, das in SerialHandleSerialHandleSerialHandleSerialHandleserialHandle
übergeben wird,
zurück. Für eine Beschreibung der Parameter der seriellen
Schnittstelle siehe set_serial_paramset_serial_paramSetSerialParamSetSerialParamSetSerialParam
.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Dieser Operator modifiziert den Zustand des folgenden Eingabeparameters:
Während der Ausführung dieses Operators muss der Zugriff auf den Wert dieses Parameters synchronisiert werden, wenn er über mehrere Threads hinweg verwendet wird.
Parameter
SerialHandleSerialHandleSerialHandleSerialHandleserialHandle
(input_control, Zustand wird modifiziert) serial →
HSerial, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle der seriellen Schnittstelle.
BaudRateBaudRateBaudRateBaudRatebaudRate
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Übertragungsgeschwindigkeit der seriellen
Schnittstelle.
DataBitsDataBitsDataBitsDataBitsdataBits
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Anzahl Datenbits der seriellen Schnittstelle.
FlowControlFlowControlFlowControlFlowControlflowControl
(output_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Datenflusskontrolle der seriellen Schnittstelle.
ParityParityParityParityparity
(output_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Parität der seriellen Schnittstelle.
StopBitsStopBitsStopBitsStopBitsstopBits
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Anzahl Stopbits der seriellen Schnittstelle.
TotalTimeOutTotalTimeOutTotalTimeOutTotalTimeOuttotalTimeOut
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Gesamt-Timeout der seriellen Schnittstelle in ms.
InterCharTimeOutInterCharTimeOutInterCharTimeOutInterCharTimeOutinterCharTimeOut
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (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_paramGetSerialParamGetSerialParamGetSerialParam
den Wert
2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
open_serialopen_serialOpenSerialOpenSerialOpenSerial
Nachfolger
read_serialread_serialReadSerialReadSerialReadSerial
,
write_serialwrite_serialWriteSerialWriteSerialWriteSerial
Siehe auch
set_serial_paramset_serial_paramSetSerialParamSetSerialParamSetSerialParam
Modul
Foundation