Dio commands sender

The diocmd driver keeps on repeating configured dio interface command.

Compile-time dependencies
  • none
Provides
  • interface_dio
Requires
  • (optional) interface_dio (if configured, commands will be sent there)
Configuration requests
  • none
Configuration file options
  • bits (string)
    • Default: "00000000000000000000000000000000"
    • Initial state (number of bits is significant)
    • Last character is the lowest bit (length greater than 0, max. 32 characters)
  • read_only (integer)
    • Default: 1
    • If set to 1, received commands will not change the state
  • wait_on_normal (double)
    • Default: 0.0 (no effect)
    • Wait time in secs.
  • wait_on_opposite (double)
    • Default: 0.0 (no effect)
    • Wait time in secs.
  • sleep_nsec (integer)
    • Default: 100000000 (10 sends per second)
    • timespec value for nanosleep()

When wait_on_normal and wait_on_opposite options are given, this driver acts as a clock signal source.

Example
driver
(
  name "diocmd"
  provides ["dio:100"]
  requires ["dio:0"]
  bits "010"
  alwayson 1
)
Author
Paul Osmialowski