Back to FabImage Library website
You are here: Start » Function Reference » Serial Port » SerialPort_Write_Deprecated
Header: | STD.h |
---|---|
Namespace: | fil |
Writes array of characters in binary mode to serial port.
Syntax
void fil::SerialPort_Write_Deprecated ( SerialPortState& ioState, const ftl::Array<int>& inData )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
ioState | SerialPortState& | Object used to maintain state of the function. | ||
![]() |
inData | const Array<int>& | Array of character values, each in the range from 0 to 255. |
Description
This filter is deprecated. Use SerialPort_ReadBuffer instead.
Filter writes inData to output buffer. All values in inData must be between 0 and 255.
Remarks
Using the SerialPort_Config filter is necessary before using the SerialPort_Write_Deprecated filter.
Errors
Using filters writing to serial port without previous configuration will cause "SerialPort not initialized" error.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Incorrect inData element value in SerialPort_Write, character values must be in range from 0 to 255 All input data elements must be provided as a single 8bit byte. Value of all elements must be in the range [0, 255] |
See Also
- SerialPort_Config – Configures the serial port.
- SerialPort_WriteBuffer – Writes raw binary data from a byte buffer to serial port.
- SerialPort_WriteByte – Writes one character in binary mode to serial port.
- SerialPort_WriteString – Writes string characters to serial port.
- SerialPort_WriteChar – Write single ASCII character to device.