Skip to content

GPIO Connnector

Parameters

Parameter Datatype Default Value Description
DEBUG enum 0 Enable debugging

Measurements

This stack supports measurements.

Measurement address

Type: regex

Description:

[<di|do|counter>@][!|!!]<pin-id>[/d:<t-debounce>]
di - measurement is a digital input (default)
do - measurement is a digital output readback
counter - measurement is a counter, integer/long datatype required
! - negated input (i.e. NC)
!! - non-negated input (i.e. NO) (default)
<pin-id> - can be one of:
  - symbolic name with dollar prefix (i.e.$GPIO_DI0)
  - hardware-dependent pin number (i.e.215)
<t-debounce> - debounce time in milliseconds

Examples:

215 - digital input on pin 215, normally-opened
!215 - digital input on pin 215, normally-closed
$GPIO_DI0 - digital input on symbolic pin GPIO_DI0
di@!$GPIO_DI0 - digital input on symbolic pin GPIO_DI0, normally closed
do@$GPIO_DI0 - digital output readback on symbolic pin GPIO_DI0
$GPIO_DI0/d:100 - digital input on symbolic pin GPIO_DI0, with 100ms debouncer
counter@!$GPIO_DI1 - counter on symbolic pin GPIO_DI1, normally closed

Commands

This stack supports commands.

Command address

Type: regex

Description:

[<do|counter-reset>@][!|!!]<pin-id>
do - command is a digital output (default)
counter-reset - command is reset for counter measurement on <pin-id>
! - negated input (i.e. NC)
!! - non-negated input (i.e. NO) (default)
<pin-id> - can be one of:
  - symbolic name with dollar prefix (i.e.$GPIO_DI0)
  - hardware-dependent pin number (i.e.215)

Examples:

96 - digital output on pin 96, nomally-opened
!96 - digital output on pin 96, normally-closed
$GPIO_DO0 - digital output on symbolic pin GPIO_DI0
do@!$GPIO_DO0 - digital output on symbolic pin GPIO_DI0, normally closed
counter-reset@$GPIO_DO1 - reset counter for symbolic pin GPIO_DI1