diodelay
Drivers

Dio state delay. More...

Dio state delay.

The diodelay defers dio bits state change.

Compile-time dependencies

- none

Provides

- dio

Requires

- (optional) dio to which diodelay will be sending dio commands containing current state ('state' key)
- (optional) dio from which dio data will be read to track down ('bits' key)

Roles of subscribed interfaces are distinguished by given key (state or bits)

Configuration requests

- none

Configuration file options

- wait_on_0 (double)
  - Default: 0.0 (no effect)
  - Wait time in secs.
- wait_on_1 (double)
  - Default: 0.0 (no effect)
  - Wait time in secs.
- fade_out (double)
  - Default: 0.0 (no effect)
  - Fade out time in secs.
- init_state (string)
  - Default: "00000000000000000000000000000000"
  - Initial state (number of bits is significant)
  - Last character is the lowest bit (length greater than 0, max. 32 characters)
- sleep_nsec (integer)
  - Default: 10000000
  - timespec value for nanosleep()

Example

    driver
    (
      name "diodelay"
      provides ["dio:0"]
      init_state "000"
      wait_on_1 2.0
      wait_on_0 0.7
      fade_out 0.333
    )

Author
  Paul Osmialowski

Last updated 12 September 2005 21:38:45