This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
flink_lib [2016/02/25 13:32] – external edit 127.0.0.1 | flink_lib [2020/05/26 16:41] – ursgraf | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Overview ===== | ===== Overview ===== | ||
<box green right 38% | **Examples**> | <box green right 38% | **Examples**> | ||
- | * [[.: | + | * [[.: |
* [[.: | * [[.: | ||
</ | </ | ||
Line 57: | Line 57: | ||
Here, the second subdevice is selected. You could also select a subdevice by its uniqe id. < | Here, the second subdevice is selected. You could also select a subdevice by its uniqe id. < | ||
Here, the subdevice with '' | Here, the subdevice with '' | ||
- | Now you cann communicate with this selected subdevice. Assuming that it's of type GPIO you could configure it as an input or output. | + | Now you can communicate with this selected subdevice. Assuming that it's of type GPIO you could configure it as an input or output. |
< | < | ||
flink_dio_set_value(subdev, | flink_dio_set_value(subdev, | ||
This sets channel 0 to output and writes a logical 0.As a last step you have to close the device. | This sets channel 0 to output and writes a logical 0.As a last step you have to close the device. | ||
< | < |