beautypg.com

Gpio support, Get/set value, Gpio direction – ThingMagic Mercury API v1.23.0 User Manual

Page 59: Get/set value gpio direction

background image

GPIO Support

Level 2 API

59

GPIO Support

Get/Set Value

Reader.GpioPin[] gpiGet()

void gpoSet(Reader.GpioPin[] state)

If the reader device supports GPIO pins, the

gpiGet() and gpoSet() methods can be

used to manipulate them. The pin numbers supported as inputs by the reader are
provided in the

/reader/gpio/inputList

parameter. The pin numbers supported as outputs

by the reader are provided in the

/reader/gpio/outputList

parameter.

The

gpiGet() and gpoSet() methods use an array Reader.GpioPin objects which

contain pin ids and values.

Note

The

gpoSet() method is not guaranteed to set all output pins

simultaneously.

Note

The

gpiGet() method returns the state for all GPI pins.

Note

See specific devices User Guide for pin number to physical pin mapping.

GPIO Direction

M6e Only

The direction (input or output) of the GPIO pins on the M6e are configurable. The
configuration of the pins can be configured by setting the the

/reader/gpio/inputList

and

M6e Only

the

/reader/gpio/outputList

parameters.