Back to FabImage Library website
You are here: Start » Function Reference » System » Serial Port » SerialPort_WriteByte
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Writes one character in binary mode to serial port.
Syntax
void fil::SerialPort_WriteByte ( SerialPortState& ioState, int inPortId, int inData )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
ioState | SerialPortState& | Object used to maintain state of the function. | ||
![]() |
inPortId | int | 0 - 7 | 0 | Identifies open port instance when working with multiple serial ports |
![]() |
inData | int | 0 - 255 | Character value. |
Description
Filters write single byte into output buffer.
Remarks
Using the SerialPort_Config filter is necessary before using the SerialPort_WriteByte filter.
Errors
Using filters writing to serial port without previous configuration will cause "SerialPort not initialized" error.
See Also
- SerialPort_Config – Configures the serial port.
- SerialPort_WriteBuffer – Writes raw binary data from a byte buffer to serial port.
- SerialPort_WriteString – Writes string characters to serial port.
- SerialPort_WriteChar – Writes single ASCII character to device.
- SerialPort_WriteByte – Writes one character in binary mode to serial port.