Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gpio_set_ct(3I) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

GPIO_SET_CTL(3I)

NAME

gpio_set_ctl − set control lines on GPIO card

SYNOPSIS

int gpio_set_ctl (eid, value)
int eid, value;

DESCRIPTION

Gpio_set_ctl enables you to set the control register of a GPIO interface.  Eid is an entity identifier of an open GPIO device file obtained from an open(2), dup(2), fcntl(2), or creat(2) call.  Value is the value to be written into the control register of the GPIO interface associated with eid.

Value is mapped onto the control lines on the interface card, with the least significant bit mapped to CTL0.  Only the x least significant bits are used, where x is the number of control lines available on the hardware interface being used. 

DEPENDENCIES

Series 300
For the 98622A, x is 2. 

Series 800
For the 27114A, x is 3. 
For the 27114B, x is 6. 
For the 28651A, x is 5. 

RETURN VALUE

Gpio_set_ctl returns 0 if successful, and −1 if an error was encountered. 

ERRORS

Gpio_set_ctl 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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026