GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MODBUS_RTU_SET_CUSTO(3) libmodbus Manual MODBUS_RTU_SET_CUSTO(3)

modbus_rtu_set_custom_rts - set a function to be used for custom RTS implementation

int modbus_rtu_set_custom_rts(modbus_t *ctx, void (set_rts) (modbus_t ctx, int on))

The modbus_rtu_set_custom_rts() function shall set a custom function to be called when the RTS pin is to be set before and after a transmission. By default this is set to an internal function that toggles the RTS pin using an ioctl call.

Note that this function adheres to the RTS mode, the values MODBUS_RTU_RTS_UP or MODBUS_RTU_RTS_DOWN must be used for the function to be called.

This function can only be used with a context using a RTU backend.

The modbus_rtu_set_custom_rts() function shall return 0 if successful. Otherwise it shall return -1 and set errno to one of the values defined below.

EINVAL
The libmodbus backend is not RTU.

Jimmy Bergström <jimmy@ekontroll.com>

The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>

04/09/2022 libmodbus v3.1.6

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.