Sun Microsystems S16A manual S16asetdiodatareg, S16asetdiodirectionreg

Page 22

Input and Output

S16A User’s Guide

s16a_set_dio_data_reg

Description

Write a specified value to the DIO Data register. Only the low 12 bits are significant; of these, bits that are configured as inputs are ignored when written.

Syntax

int s16a_set_dio_data_reg(S16aDev *s16a_p, int value);

Arguments

 

s16a_p

S16A device handle returned from s16a_open

value

Value to write to the DIO Data register.

Return

Returns 0 on success or –1 on failure. Fails if s16a_p does not refer to an output channel. Sets errno on failure.

s16a_set_dio_direction_reg

Description

Write a specified value to the DIO Direction register. The low 12 bits configure the corresponding DIO pins. If a bit is set, the DIO pin of the same number is configured as an output signal.

Syntax

int s16a_set_dio_direction_reg(S16aDev *s16a_p, int value);

Arguments

 

s16a_p

S16A device handle returned from s16a_open

value

Value to write to the DIO Direction register.

Return

Returns 0 on success or –1 on failure. Fails if s16a_p does not refer to an output channel. Sets errno on failure.

18

EDT, Inc. October, 1996

Image 22
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 ApplicationsRoutine Description DMA Library RoutinesGeneral DMA Library Routines Syntax S16abufferaddressesS16A-specific Library Routines ArgumentsS16acancelcurrent S16acancelS16achecknextbuffer S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteFoiparityerror Error ConditionsError Codes and Conditions Hardware Interface Electrical InterfaceSignal S16A I/O Description Interface SignalsS16A Interface Signals Pin Signal Connector PinoutConnector Pinout Registers SBus Addresses S16A ROMCurrent DMA Address Registers DMA RegistersNext 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