Lines Matching +full:rs485 +full:- +full:enabled +full:- +full:at +full:- +full:boot +full:- +full:time
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
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
32 The Linux kernel provides the struct serial_rs485 to handle RS485
33 communications. This data structure is used to set and configure RS485
36 The device tree can also provide RS485 boot time parameters
37 [#DT-bindings]_. The serial core fills the struct serial_rs485 from the
41 Any driver for devices capable of working both as RS232 and RS485 should
48 what RS485 features the driver supports for the ``struct uart_port``.
52 .. kernel-doc:: include/uapi/linux/serial.h
55 4. Usage from user-level
58 From user-level, RS485 configuration can be get/set using the previous
59 ioctls. For instance, to set RS485 you can use the following code::
63 /* Include definition for RS485 ioctls: TIOCGRS485 and TIOCSRS485 */
74 /* Enable RS485 mode: */
110 The Linux kernel provides addressing mode for multipoint RS-485 serial
111 communications line. The addressing mode is enabled with
117 - ``SER_RS485_ADDRB``: Enabled addressing mode (sets also ADDRB in termios).
118 - ``SER_RS485_ADDR_RECV``: Receive (filter) address enabled.
119 - ``SER_RS485_ADDR_DEST``: Set destination address.
121 Address fields (enabled with corresponding ``SER_RS485_ADDR_*`` flag):
122 - ``addr_recv``: Receive address.
123 - ``addr_dest``: Destination address.
130 Note: not all devices supporting RS485 support multipoint addressing.
135 .. [#DT-bindings] Documentation/devicetree/bindings/serial/rs485.txt