• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

Software development tool for distributed control systems

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Protocols - GPIO - General Purpose I/O
  • GPIOPinIO Manual
  • 4.10.7

Protocols - GPIO - General Purpose I/O GPIO Setup Guide

GPIOPinIO Manual

Introduction

This manual describes the GPIOPinLib library and explains the purpose and usages of the library models - GPIOServer and GPIOPin.

GPIOServer

The GPIOServer is an I/O server that handles the updating (periodic reading/writing) of the GPIO pins. From the user experience perspective it is a container for all the GPIOPin channels and a place where the user can conveniently configure them. For this purpose the GPIOServer component has a Section specifically for listing all the GPIOPins that have been added to it.

Usage

To set up a GPIOServer for an application simply add it as a subcomponent. To add a GPIOPin to the server navigate into it and add the GPIOPin from the resource tree or by using the in the Configuration editor.

GPIOPin

The GPIOPin represents a single physical input/output pin of an integrated circuit board.

Usage

When working with GPIOPins the most important properties are the following:

PropertyDescription
Nrdefines the GPIO number on the integrated circuit board that you wish to interact with (see the circuit board's documentation to determine the pin number).
Inputdefines whether this pin accepts inputs from CDP or not.
Routingdefines the signal routing that can be used for controlling the pin (if it is set as an input) or passing the pin's state to CDP.

To interact (read/write) with a physical I/O pin the user must:

  • Add a GPIOPin channel to a GPIOServer. See GPIOServer usage.
  • Set the Nr property of the GPIOPin to the pin number of the circuit board.
  • If the desire is to control the pin state with CDP, check the Input property checkbox to define that the GPIOPin accepts inputs from CDP. Otherwise leave the Input property unchecked.
  • Set the Routing property to point to a desired signal or another IOServer channel.

Warning: GPIOPin has a meaningful implementation on Linux only. On Windows it has just a dummy implementation.

See also GPIOServer, GPIOPin, and GPIO Setup Guide.

Protocols - GPIO - General Purpose I/O GPIO Setup Guide

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

    © Copyright 2021 CDP Technologies. Privacy and cookie policy.

    Return to top