Sun Microsystems manual S16abufferaddresses, S16A-specific Library Routines, Syntax, Arguments

Page 12

Input and Output

S16A User’s Guide

The following driver-specific routines are also available:

Routine

Description

 

 

 

 

s16a_get_dac_control_reg

Get the current state of the output DAC control register.

s16a_get_dio_data_reg

Get the current state of the DIO Data register.

s16a_get_dio_direction_reg

Get the current state of the DIO Direction register.

s16a_get_output_bits

Get the output resolution of the S16A.

s16a_serial_read

Read a response string from the Analog Input module.

s16a_serial_str

Send a command string to the Analog Input module and return the

 

response only if it differs from the string sent.

s16a_serial_write

Send a command string to the Analog Input module.

s16a_set_dac_control_reg

Write a value to the output DAC Control register.

s16a_set_dio_data_reg

Write a value to the DIO Data register.

s16a_set_dio_direction_reg

Write a value to the DIO Direction register.

s16a_set_output_bits

Set the output resolution of the S16A.

 

 

 

Table 2. S16A-specific Library Routines

s16a_buffer_addresses

Description

Returns an array containing the addresses of the buffers.

Syntax

void **s16a_buffers(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open.

Return

Address of an array of pointers to the ring buffers allocated by the driver or the library. The array of buffer pointers is allocated by the library. Null on error.

8

EDT, Inc. October, 1996

Image 12
Contents S16A EDT, Inc. October Contents Tables Overview Installation Installing the HardwareInstalling the Software 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 ApplicationsDMA Library Routines Routine DescriptionGeneral DMA Library Routines S16abufferaddresses S16A-specific Library RoutinesSyntax ArgumentsS16acancel S16acancelcurrentS16achecknextbuffer S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteError Conditions FoiparityerrorError Codes and Conditions Hardware Interface Electrical InterfaceInterface Signals Signal S16A I/O DescriptionS16A Interface Signals Connector Pinout Pin SignalConnector Pinout Registers SBus Addresses S16A ROMDMA Registers Current DMA Address RegistersNext DMA Address Registers Current Count Registers Control and Next Count RegistersDirect I/O Registers DAC Output Control RegisterDIO Direction Register DIO Data RegisterAnalog Input Module Internal Registers DAC Output Control RegisterName Description Analog Input Module Internal RegistersInput Configuration Registers Input Clock Prescale RegistersTrim Registers Input Gain High Byte ValuesTrim Register Use Trim Registers Trim Output Offset RegistersTemperature Register Analog Input Module Uart RegistersAnalog Input Module Control Protocol Trim Input Gain RegistersWrite to an Input Configuration Register Read from an Input Configuration RegisterWrite to a Clock Prescale Register Read from a Clock Prescale RegisterUart Command/Status Register Read the Temperature RegisterUart Command/Status Register Write to a Trim RegisterXilinx Programming Registers Uart Data RegisterSpecifications References Contacting EDT Index 15-16Configuration ROM