![]() |
flinklib
flinklib: flink C library for Linux
|
There are several small command line tools for working with a flink device.
Lists all subdevices of a flink device.
Example: lsflink -d /dev/flink0 -v
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -v | verbose mode |
Prints the description string of the info subdevice.
Example: flinkinfo -d /dev/flink0 -s 0
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
Control a flink digital I/O subdevice.
Example: flinkdio -d /dev/flink0 -s 2 -c 0 -w -h
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -r | read from input |
| -w | write to output |
| -h | set output HIGH |
| -l | set output LOW |
Control a flink PWM subdevice.
Example: flinkpwm -d /dev/flink0 -s 3 -c 0 -f 1000 -h 50
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -f frequency | PWM frequency (in Hz) |
| -h dutycycle | PWM duty cycle in % |
| -v | verbose output |
Read a flink PPWA subdevice.
Example: flinkppwa -d /dev/flink0 -s 3 -c 0
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -v | verbose output |
Read a flink counter subdevice.
Example: flinkcounter -d /dev/flink0 -s 1 -c 0 -n 100 -t 100
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -n repeats | number of repeats |
| -t time | time in ms between counter reads |
Read a flink analog input subdevice.
Example: flinkanaloginput -d /dev/flink0 -s 4 -c 0
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -v | verbose output |
Control a flink analog output subdevice.
Example: flinkanalogoutput -d /dev/flink0 -s 4 -c 0 -o 38000
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -c channel | channel to use |
| -o value | output value |
| -v | verbose output |
Control a flink watchdog device. The watchdog is n times retriggered after 80% of the timeout is expired.
Example: flinkwd -d /dev/flink0 -s 2 -n 20 -t 200
Options:
| Option | Description |
|---|---|
| -d file | specify device file |
| -s id | select subdevice by id |
| -n repeats | number of repeats |
| -t timeout | watchdog timeout |
| -r | real time |
| -v | verbose output |