Sun Microsystems S16A manual Error Conditions, Foiparityerror, Error Codes and Conditions

Page 26

Input and Output

S16A User’s Guide

foi_parity_error

Description

Checks to determine if a parity error has occurred since the last time this routine was called and returns 0 if not, 1 if so, and –1 if the routine is not supported for a particular device or an illegal argument was provided.

Syntax

int foi_parity_error(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open

Return

0 if no error; 1 if parity error; –1 if the routine is not supported or if an illegal argument was provided.

Error Conditions

The table below shows some of the error codes that may be received from a call to the S16A driver. After any I/O system call, the errno global variable contains the error code, if any, and the perror system call can print out a string describing the error code. Refer to your system programming documentation for details about errno and perror.

Error Code

Failing Driver Call

Error Condition

 

 

 

 

 

 

ENXIO

open

The S16A attach failed. The device is not present.

EEXIST

open

The S16A is already opened with an exclusive lock.

 

 

 

Table 3. Error Codes and Conditions

22

EDT, Inc. October, 1996

Image 26
Contents S16A EDT, Inc. October Contents Tables Overview Installing the Software InstallationInstalling the Hardware Using SunOS VersionS16A User’s Guide Installation Using System V Release 4 Solaris 2.4 or Later Building the Sample ProgramsIncluded Files ReadmeInput and Output Elements of S16A ApplicationsGeneral DMA Library Routines DMA Library RoutinesRoutine Description Syntax S16abufferaddressesS16A-specific Library Routines ArgumentsS16achecknextbuffer S16acancelS16acancelcurrent S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteError Codes and Conditions Error ConditionsFoiparityerror Hardware Interface Electrical InterfaceS16A Interface Signals Interface SignalsSignal S16A I/O Description Connector Pinout Connector PinoutPin Signal Registers SBus Addresses S16A ROMNext DMA Address Registers DMA RegistersCurrent DMA Address Registers Current Count Registers Control and Next Count RegistersDIO Direction Register Direct I/O RegistersDAC Output Control Register DIO Data RegisterName Description Analog Input Module Internal RegistersDAC Output Control Register Analog Input Module Internal RegistersInput Configuration Registers Input Clock Prescale RegistersTrim Register Use Trim RegistersInput Gain High Byte Values Trim Registers Trim Output Offset RegistersAnalog Input Module Control Protocol Temperature RegisterAnalog Input Module Uart Registers Trim Input Gain RegistersWrite to a Clock Prescale Register Write to an Input Configuration RegisterRead from an Input Configuration Register Read from a Clock Prescale RegisterUart Command/Status Register Uart Command/Status RegisterRead the Temperature Register Write to a Trim RegisterXilinx Programming Registers Uart Data RegisterSpecifications References Contacting EDT Index 15-16Configuration ROM