Gpiodigitalget - Newport XPS Programmer's Manual

Xps unified series universal high-performance motion controller/driver
Hide thumbs Also See for XPS:
Table of Contents

Advertisement

XPS Unified
EDH0373En1023 — 01/18
7.2.1.63

GPIODigitalGet

Name
GPIODigitalGet – Reads one digital input or output.
Input tests
-
Refer to section 7.1: "Input Tests Common to all XPS Functions".
-
GPIO name (DI or DO): (-8)
-
Hardware compatibility or XPS initialization in progress: (-22)
Description
Returns the value of digital input (DI) or digital output (DO).
Prototype
int GPIODigitalGet(
int SocketID,
char * GPIOName,
unsigned int * DigitalValue
)
Input parameters
SocketID
GPIOName
Output parameters
AnalogGainValueArray
Return (In addition to the results of "Input Tests Common to all XPS
Functions")
• 0:
No error.
• -8:
Wrong object type for this command.
• -22:
Not allowed action.
int
Socket identifier gets by the
"TCP_ConnectToServer" function.
char *
Digital GPIO name (maximum size = 250).
uint *
Analog GPIO value array (DAC or ADC).
110
Programmer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xps-rlXps-qXps-d

Table of Contents