Sun Microsystems S16A manual S16asetoutputbits, S16astartbuffers

Page 23

S16A User’s Guide

Input and Output

s16a_set_output_bits

Description

Set the output resolution of the S16A to 16 or 20 bits.

Syntax

int s16a_set_output_bits(S16aDev *s16a_p, int value);

Arguments

 

s16a_p

S16A device handle returned from s16a_open

value

Either 16 or 20, indicating the operational mode of the output DAC.

Return

Returns 0 on success or –1 on failure. Fails if s16a_p does not refer to an output channel, or if value is anything but 16 or 20. Sets errno on failure.

s16a_start_buffers

Description

Releases the specified number of buffers to the driver for transfer.

Syntax

int s16a_start_buffers(S16aDev *s16a_p, int bufnum);

Arguments

 

s16a_p

S16A device handle returned from s16a_open

bufnum

Number of buffers to release to the driver for transfer. An argument of 0 causes the driver

 

to perform continuous transfers.

Return

0 on success; –1 on error. If an error occurs, check the errno global variable for the error number.

EDT, Inc. October, 1996

19

Image 23
Contents S16A EDT, Inc. October Contents Tables Overview Using SunOS Version InstallationInstalling the Hardware Installing the SoftwareS16A 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 Arguments S16abufferaddressesS16A-specific Library Routines SyntaxS16achecknextbuffer 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 RegistersDIO Data Register Direct I/O RegistersDAC Output Control Register DIO Direction RegisterAnalog Input Module Internal Registers Analog Input Module Internal RegistersDAC Output Control Register Name DescriptionInput Clock Prescale Registers Input Configuration RegistersTrim Registers Trim Output Offset Registers Trim RegistersInput Gain High Byte Values Trim Register UseTrim Input Gain Registers Temperature RegisterAnalog Input Module Uart Registers Analog Input Module Control ProtocolRead from a Clock Prescale Register Write to an Input Configuration RegisterRead from an Input Configuration Register Write to a Clock Prescale RegisterWrite to a Trim Register Uart Command/Status RegisterRead the Temperature Register Uart Command/Status RegisterUart Data Register Xilinx Programming RegistersSpecifications References Contacting EDT 15-16 IndexConfiguration ROM