Sun Microsystems S16A Laptop User Manual


 
S16A User’s Guide Input and Output
EDT, Inc. October, 1996 13
s16a_get_dio_data_reg
Description
Get current state of the DIO Data register. The low 12 bits reflect the current state of the DIO pins. Bits that
are configured as outputs are read as zero. To check for an error, clear the errno global variable before calling
this function, then check it for nonzero after the function returns.
Syntax
u_int s16a_get_dio_data_reg(S16aDev *s16a_p);
Arguments
s16a_p S16A device handle returned from s16a_open
Return
Integer containing current state of the DIO Data register. The global variable errno is set on error.
s16a_get_dio_direction_reg
Description
Get current state of the DIO Direction register. The low 12 bits reflect the configuration of the corresponding
DIO pins. If a bit is set, the DIO pin of the same number is configured as an output signal. To check for an
error, clear the errno global variable before calling this function, then check it for nonzero after the function
returns.
Syntax
u_int s16a_get_dio_direction_reg(S16aDev *s16a_p);
Arguments
s16a_p S16A device handle returned from s16a_open
Return
Integer containing current state of the DIO Direction register. The global variable errno is set on error.