Dio bits latch.
More...
Dio bits latch.
This device latches configured state of bits (zeros or ones, according to given pattern)
- Compile-time dependencies
- Provides
- dio (with key 'set')
- dio (with key 'reset')
Roles of provided interfaces are distinguished by given key (set or reset)
- Requires
- (optional) dio (with key 'set')
- (optional) dio (with key 'reset')
- Configuration requests
- Configuration file options
- pattern (string)
- Default: "11111111111111111111111111111111"
- What states of bits to catch (number of bits is significant)
- Last character is the lowest bit (length greater than 0, max. 32 characters)
- send_commands (integer) (only when dio interface with 'set' key is subscribed)
- Default: 0
- If set to 1, send commands instead of reading data on subscribed dio interface with 'set' key
- neg (integer)
- Default: 0
- If set to 1, negate reset before use
- Example
driver
(
name "diolatch"
provides ["set:::dio:0" "reset:::dio:1"]
pattern "010"
)
- Author:
- Paul Osmialowski