Lines Matching +full:rs485 +full:- +full:rts +full:- +full:delay

2 RS485 Serial Communications
8 EIA-485, also known as TIA/EIA-485 or RS-485, is a standard defining the
15 2. Hardware-related Considerations
18 Some CPUs/UARTs (e.g., Atmel AT91 or 16C950 UART) contain a built-in
19 half-duplex mode capable of automatically controlling line direction by
20 toggling RTS or DTR signals. That can be used to control external
21 half-duplex hardware like an RS485 transceiver or any RS232-connected
22 half-duplex devices like some modems.
26 available at user-level to allow switching from one mode to the other, and
33 RS485 communications. This data structure is used to set and configure RS485
36 The device tree can also provide RS485 boot time parameters (see [2]
40 Any driver for devices capable of working both as RS232 and RS485 should
46 using rs485_supported that indicates what RS485 features the driver supports
50 4. Usage from user-level
53 From user-level, RS485 configuration can be get/set using the previous
54 ioctls. For instance, to set RS485 you can use the following code::
58 /* Include definition for RS485 ioctls: TIOCGRS485 and TIOCSRS485 */
69 /* Enable RS485 mode: */
72 /* Set logical level for RTS pin equal to 1 when sending: */
74 /* or, set logical level for RTS pin equal to 0 when sending: */
77 /* Set logical level for RTS pin equal to 1 after sending: */
79 /* or, set logical level for RTS pin equal to 0 after sending: */
82 /* Set rts delay before send, if needed: */
85 /* Set rts delay after send, if needed: */
105 The Linux kernel provides addressing mode for multipoint RS-485 serial
111 - SER_RS485_ADDRB: Enabled addressing mode (sets also ADDRB in termios).
112 - SER_RS485_ADDR_RECV: Receive (filter) address enabled.
113 - SER_RS485_ADDR_DEST: Set destination address.
116 - addr_recv: Receive address.
117 - addr_dest: Destination address.
124 Note: not all devices supporting RS485 support multipoint addressing.
131 [2] Documentation/devicetree/bindings/serial/rs485.txt