Sun Microsystems S16A manual S16agetdiodatareg, S16agetdiodirectionreg

Page 17

S16A User’s Guide

Input and Output

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.

EDT, Inc. October, 1996

13

Image 17
Contents S16A EDT, Inc. October Contents Tables Overview Installing the Hardware InstallationInstalling the Software Using SunOS VersionS16A User’s Guide Installation Building the Sample Programs Using System V Release 4 Solaris 2.4 or LaterReadme Included FilesElements of S16A Applications Input and OutputGeneral DMA Library Routines DMA Library RoutinesRoutine Description S16A-specific Library Routines S16abufferaddressesSyntax ArgumentsS16achecknextbuffer S16acancelS16acancelcurrent S16aclose Arguments S16aconfigureringbuffersS16agetdaccontrolreg S16adoneS16agetdiodirectionreg S16agetdiodataregS16aopen S16agetoutputbitsS16aserialread S16areadS16aserialwrite S16aserialstrS16asetdaccontrolreg S16asetdefaultsS16asetdiodirectionreg S16asetdiodataregS16astartbuffers S16asetoutputbitsS16awaitforbuffer S16astopbuffersS16awrite S16awaitfornextbufferError Codes and Conditions Error ConditionsFoiparityerror Electrical Interface Hardware InterfaceS16A Interface Signals Interface SignalsSignal S16A I/O Description Connector Pinout Connector PinoutPin Signal Registers S16A ROM SBus AddressesNext DMA Address Registers DMA RegistersCurrent DMA Address Registers Control and Next Count Registers Current Count RegistersDAC Output Control Register Direct I/O RegistersDIO Direction Register DIO Data RegisterDAC Output Control Register Analog Input Module Internal RegistersName Description Analog Input Module Internal RegistersInput Clock Prescale Registers Input Configuration RegistersInput Gain High Byte Values Trim RegistersTrim Register Use Trim Registers Trim Output Offset RegistersAnalog Input Module Uart Registers Temperature RegisterAnalog Input Module Control Protocol Trim Input Gain RegistersRead from an Input Configuration Register Write to an Input Configuration RegisterWrite to a Clock Prescale Register Read from a Clock Prescale RegisterRead the Temperature Register Uart Command/Status RegisterUart Command/Status Register Write to a Trim RegisterUart Data Register Xilinx Programming RegistersSpecifications References Contacting EDT 15-16 IndexConfiguration ROM