Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:sw:02-apis:04-sysfs [2018/07/12 07:56]
martin_kudlacek ↷ Page moved from en:sw:02-evok:03-sysfs to en:sw:02-sdks:03-sysfs
en:sw:02-apis:04-sysfs [2018/12/04 13:23]
tomas_knot ↷ Page name changed from en:sw:02-sdks:03-sysfs to en:sw:02-sdks:04-sysfs
Line 1: Line 1:
 ====== SysFS ====== ====== SysFS ======
 +<WRAP center round tip 60%>
 +The SysFS driver is still under development. Please report any issues or feature requests.
 +</​WRAP>​
  
 +SysFS driver included in the kernel module provides easy file-based access to all IOs. Check the following examples to get started:
 +
 +Set state of DO to 1
 +<​code>​echo 1 > /​sys/​devices/​platform/​unipi_plc/​io_group1/​do_1_01/​do_value</​code>​
 +
 +Read the state of DI
 +<​code>​cat /​sys/​devices/​platform/​unipi_plc/​io_group1/​di_1_01/​di_value</​code>​
 +
 +All IOs can be accessed in a similar way.
 +
 +Further documentation can be found here: https://​git.unipi.technology/​UniPi/​unipi-kernel/​src/​master/​docs/​sysfs-platform-unipi.txt