GPIO_GET_STATUS(3I)
NAME
gpio_get_status − return status lines of GPIO card
SYNOPSIS
int gpio_get_status (eid)
int eid;
DESCRIPTION
Gpio_get_status enables you to read the status register of the GPIO interface associated with the device file identified by eid. Eid is an entity identifier of an open GPIO device file obtained from an open(2), dup(2), fcntl(2), or creat(2). The current state of each status line on the interface card is mapped to the value returned, with STS0 mapped to the least significant bit. Only x least-significant bits are used, where x is the number of status lines available on the hardware interface being used.
DEPENDENCIES
Series 300
For the 98622A, x is 2.
Series 800
For the 27114A, x is 2.
For the 27114B, x is 6.
For the 28651A, x is 5.
RETURN VALUE
Gpio_get_status returns the value of the status register of the GPIO interface associated with eid, and −1 if an error was encountered.
ERRORS
Gpio_get_status fails if one of the following conditions is true and sets errno accordingly:
[EBADF] eid does not refer to an open file.
[ENOTTY] eid does not refer to a GPIO device file.
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989