Application Programming Interface (API)
VSL_GetVersion()
Gets the version number of the VersaAPI library
Syntax:
VL_OSALIB_API void
VSL_GetVersion(unsigned char *Major, unsigned char
*Minor, unsigned char *Revision);
Inputs:
unsigned char *Major
A pointer to the unsigned character to receive the Version Major number.
unsigned char *Minor
A pointer to the unsigned character to receive the Version Minor number.
unsigned char *Revision
A pointer to the unsigned character to receive the Version Revision number.
Outputs:
none
While this function is void, the Major, Minor, and Revision versions are returned
in their respective input fields.
Digital I/O (DIO) Calls
API calls can be made to control or interrogate specific DIO channels. The following table lists
the channel, level, and direction parameter definitions used in DIO calls.
Table 8: DIO API Parameter Definitions
Parameters
Value
Channel
DIO_U2_CHANNEL_1
0xA0
DIO_U2_CHANNEL_2
0xA1
DIO_U2_CHANNEL_3
0xA2
DIO_U2_CHANNEL_4
0xA3
DIO_U2_CHANNEL_5
0xA4
DIO_U2_CHANNEL_6
0xA5
DIO_U2_CHANNEL_7
0xA6
DIO_U2_CHANNEL_8
0xA7
DIO_U2_CHANNEL_9
0xA8
DIO_U2_CHANNEL_10
0xA9
DIO_U2_CHANNEL_11
0xAA
DIO_U2_CHANNEL_12
0xAB
Level*
DIO_CHANNEL_LOW
0x00
DIO_CHANNEL_HIGH
0x01
Direction
DIO_INPUT
0x01
DIO_OUTPUT
0x00
*Level values are also the return results for
VSL_DIOGetChannelLevel.