Reading Stio And Stll - HP 9000 Series 300 Tutorials Manual

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

Reading STIO and STI1
The call to gpio_get_status has the following form:
int
eid, value;
value
=
gpio_get_status(eid);
where
eid
is the entity identifier for an open GPIO interface file.
gpio_get_status returns an integer whose least significant two bits are the
values of STIO and STIl.
Like CTLO and CTL1, STIO and STI1 are ground-true logic meaning
they are at a logic LOW level when asserted. Thus the
value
returned by
gpio_get_status is as follows (be sure to AND value with 3 to clear upper
bits before testing):
• If value =0: STIO and STI1 both false (HIGH logic level)
• If value =1: STIO true (LOW logic level) and STI1 false (HIGH logic
level)
• If value =2: STIO false (HIGH logic level) and STI1 true (LOW logic
level)
• If value =3: STIO and STI1 both true (LOW logic level)
4-6
Controlling the GPIO Interface

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents