Gpi general purpose input, 14 gpi general purpose input, Gpiav – Analog Way LIVECORE PLATFORM TPP Current Programmer's Guide User Manual

Page 38: Gpimo, Gpits, Gpist

Advertising
background image

38

PROGRAMMER'S GUIDE FOR v02.00.46

3.14 GPI General Purpose Input

3.14.1 Usage

This command sequence reads the GPI availability flag, sets the GPI mode and reads the GPI status.

3.14.2 Detailed commands sequence

Read the GPI availability flag :

Command : <gpi>,

GPiav

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

Answer :

GPiav

<gpi>,<value>

C

R

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

<value> equals 0 if the GPI is unavailable or equals 1 if the GPI is available.

Set GPI mode : This command sets the GPI mode. Value 0 means ‘Normal’ mode whereas value 1
means ‘Take’ mode. When the ‘Take’ mode is enabled and the GPI status becomes active, a TAKE
operation is automatically executed on all the screens defined by the command GPits (see below).

Syntax : <gpi>,<mode>

GPimo

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

<mode> is the GPI mode (0 for ‘Normal’ or 1 for ‘Take’).

Define which screens to Take: This command defines which screens to Take when the corresponding
GPI is active. It should be repeated for each existing screen.

Syntax : <gpi>,<scn>

GPits

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

<scn> is the screen index (0 to 7 depending on the configuration).

Read GPI status :

Command : <gpi>,

GPist

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

Answer :

GPist

<gpi>,<value>

C

R

L

F

<gpi> is the GPI index (0 for Master device GPI, 1 for Slave device GPI).

<value> equals 0 if the GPI is not active or equals 1 if the GPI is active.

Advertising
This manual is related to the following products: