rs485.h 454 B

1234567891011121314151617181920
  1. /* RS-485 structures */
  2. /* RS-485 support */
  3. /* Used with ioctl() TIOCSERSETRS485 */
  4. struct rs485_control {
  5. unsigned short rts_on_send;
  6. unsigned short rts_after_sent;
  7. unsigned long delay_rts_before_send;
  8. unsigned short enabled;
  9. #ifdef __KERNEL__
  10. int disable_serial_loopback;
  11. #endif
  12. };
  13. /* Used with ioctl() TIOCSERWRRS485 */
  14. struct rs485_write {
  15. unsigned short outc_size;
  16. unsigned char *outc;
  17. };