serio
Drivers

low-level access to the serial port control lines More...

low-level access to the serial port control lines

The serio driver provides low-level access to the serial port control lines.

The digout bitfield of dio interface command structure needs lowest two bits to be filled: 0 - new RTS line state (output line) 1 - new DTR line state (output line)

This driver provides data by filling bits bitfield of dio interface data structure. Lowest six bits are filled by the driver: 0 - current RTS line state (output line) 1 - current DTR line state (output line) 2 - currend DCD line state (input line) 3 - current CTS line state (input line) 4 - current DSR line state (input line) 5 - current RI line state (input line)

Compile-time dependencies

- none

Provides

- dio

Requires

- none

Configuration requests

- none

Configuration file options

- port (integer)
  - Default: /dev/ttyS0
- sleep_nsec (integer)
  - Default: 10000000 (=10ms which gives max 100 main loop turns per second)
  - timespec value for nanosleep()

Example

    driver
    (
      name "serio"
      provides ["dio:0"]
      port "/dev/ttyPZ1"
    )

Author
  Paul Osmialowski

Last updated 12 September 2005 21:38:45