ClassesClasses | | Operators

write_serialT_write_serialWriteSerialWriteSerial (Operator)

Name

write_serialT_write_serialWriteSerialWriteSerial — Write to a serial connection.

Signature

write_serial( : : SerialHandle, Data : )

Herror T_write_serial(const Htuple SerialHandle, const Htuple Data)

void WriteSerial(const HTuple& SerialHandle, const HTuple& Data)

void HSerial::WriteSerial(const HTuple& Data) const

void HSerial::WriteSerial(Hlong Data) const

static void HOperatorSet.WriteSerial(HTuple serialHandle, HTuple data)

void HSerial.WriteSerial(HTuple data)

void HSerial.WriteSerial(int data)

Description

write_serialwrite_serialWriteSerialWriteSerialWriteSerial writes the characters given in DataDataDataDatadata to the serial device given by SerialHandleSerialHandleSerialHandleSerialHandleserialHandle. The data to be written is passed as a tuple of integers. This allows to write NUL characters, which would otherwise be interpreted as the end of a string. write_serialwrite_serialWriteSerialWriteSerialWriteSerial always waits until all data has been transmitted, i.e., a timeout for writing cannot be set.

Execution Information

Parameters

SerialHandleSerialHandleSerialHandleSerialHandleserialHandle (input_control)  serial_id HSerial, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Serial interface handle.

DataDataDataDatadata (input_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Characters to write (as tuple of integers).

Result

If the parameters are correct and the write to the device was successful, the operator write_serialwrite_serialWriteSerialWriteSerialWriteSerial returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

open_serialopen_serialOpenSerialOpenSerialOpenSerial

See also

read_serialread_serialReadSerialReadSerialReadSerial

Module

Foundation


ClassesClasses | | Operators