beautypg.com

Silex technology Embedded Intelligent Module SX-560 User Manual

Page 66

background image

Page 60

Silex

Advanced Configuration

Part Number

140-00192-100

GPIO direction control

Integer

read-only

gpio.2


This is an integer representing a bit mask indicating which GPIO bits are configured for outputs. Only
bits for which the GPIO bit mask is 1 are valid. A 1 indicates the GPIO bit is an output, a 0 indicates an
input.

7 6 5 4 3 2 1 0

GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1


GPIO data

Integer

read-write

gpio.2


This is an integer representing a bit mask indicating the GPIO bits status. On a read, the current value
of the input pins is returned. Output bits return the last value set. On a write, bits configured as outputs
are set to the value given by the corresponding mask bit. For input bits, a write has no effect.

7 6 5 4 3 2 1 0

GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1


GPIO trigger mask

Integer

read-only

gpio.2


This value is an integer representing a 32 bit mask expressed in hex digits. The mask is encoded as
follows:

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
N/A N/A N/A N/A N/A N/A N/A N/A TRIG16 TRIG15 TRIG14 TRIG13 TRIG12 TRIG11 TRIG10 TRIG9
GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1
1 to 0 1 to 0 1 to 0 1 to 0 1 to 0 1 to 0 1 to 0 1 to 0

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
N/A N/A N/A N/A N/A N/A N/A N/A TRIG8 TRIG7 TRIG6 TRIG5 TRIG4 TRIG3 TRIG2 TRIG1
GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1
0 to 1 0 to 1 0 to 1 0 to 1 0 to 1 0 to 1 0 to 1 0 to 1


A value of 1 indicates the corresponding GPIO trigger condition is enabled. A value of 0 indicates the
correspon ding GPIO trigger condition is disabled. For example a hex value of 4 represents GPIO3 0
to 1 transition (TRIG3) is enabled as a trigger.
GPIO transmit string table index

Integer

read-only

gpio.5.1.1.n


This value is the index into the GPIO message table for trigger number n. For the SX-560, this always
returns n as its value.
GPIO transmit string value

Octet-string

read-only

gpio.5.1.2.n


This item returns the GPIO transmit string for trigger number n, if a string is defined. The string may be
defined even if the corresponding trigger is not currently enabled.