BALTECH SDK wrapper functions reference

§ brp_set_rs232_interbyte_timeout()

BRP_LIB brp_errcode brp_set_rs232_interbyte_timeout ( brp_protocol  protocol,
brp_time  timeout 
)

Sets the interbyte timeout for RS232 communication (Windows only).

The interbyte timeout is the maximum time to wait between receiving individual bytes after the first byte of a frame has been received. This is particularly relevant when using USB-to-serial converters (e.g., FTDI chips) that may introduce delays between bytes.

Note: This function is only supported on Windows. On Linux/macOS, it will always return BRP_ERR_INVALID_API_CALL.

Parameters
protocolRS232 protocol instance
timeoutTimeout value in milliseconds
Returns
BRP_OK on success (Windows only), BRP_ERR_INVALID_API_CALL if protocol is not an RS232 protocol or if called on Linux/macOS