Skip to main content

title: "GPIOChip (Raspberry Pi, Beagle Bone Black and Similar Boards)" url: doc/io_config/gpiochip.html page_css_file: /4diac/css/4diac_doc.css sidebar: - sb-doc ---

The following picture shows an example application.

The application periodically toggles the output pin 26, while the input pin 16 is high.

You can connect an LED to obtain a blinking light.

Simple blinking application with an IX and QX function block. The inputs of the GPIOChip are the following:

NameDescription
VALUEReceiver IX/QX block name
ChipNumberID of /dev/gpiochipX device
LineNumberID of GPIO line within the selected chip
ReadWriteModeReading/Writing mode of line (0=read, 1=write push/pull, 2=open drain, 3=open source)
BiasModeBias mode of line (0=none, 1=pull up, 2=pull down)
ActiveLowTrue if a logic 1 corresponds to low voltage

To find out the chip- and line number the gpioinfo tool can be used. The VALUE input defines the IO FB to which it is connected. If the IO Block is placed inside an APP: VALUE = App-Name.FB-Name. If it is placed in the Resource: VALUE = App-Name.

Where to go from here?

You can see the supported protocols:

Supported Communication Protocols

You can see the examples:

4diac Examples

If you want to go back to the Where to Start page, we leave you here a fast access

Where to Start

Or Go to top