background image

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. 

Содержание VL-MPEe-U2

Страница 1: ...Reference Manual REV February 2021 VL MPEe U2 MiniPCIe Quad Serial Interface Module with GPIO ...

Страница 2: ...as been made to ensure this document is error free VersaLogic makes no representations or warranties with respect to this product and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose VersaLogic reserves the right to revise this product and associated documentation at any time without obligation to notify anyone of such changes ...

Страница 3: ...uthorization RMA number by calling 503 747 2261 Please provide the following information Your name the name of your company your phone number and e mail address The name of a technician or engineer that can be contacted if any questions arise The quantity of items being returned The model and serial number barcode of each item A detailed description of the problem Steps you have taken to resolve o...

Страница 4: ... VL MPEe U2 Mounting 8 VL MPEe U2 Dimensions and Connectors 8 VL CBR 2004B Dimensions and Connectors 9 Jumper Blocks 10 VL MPEe U2 Jumpers As shipped Configuration 10 Jumper Summary 11 Interfaces and Connectors 12 Serial Ports 12 COM Port Configuration 12 Serial Port Connectors 13 General Purpose I O GPIO Lines 14 GPIO Connector 14 LEDs 15 Application Programming Interface API 16 About VersaAPI 16...

Страница 5: ... supplies to the user I O connectors VL MPEe U2 boards are subjected to 100 functional testing and are backed by a limited two year warranty Careful parts sourcing and US based technical support ensure the highest possible quality reliability service and product longevity for this exceptional board Technical Specifications Specifications are subject to change without notification Board Size 30 00 ...

Страница 6: ...ning July 1 2006 VersaLogic Corp is committed to supporting customers with high quality products and services meeting the European Union s RoHS directive Warnings ELECTROSTATIC DISCHARGE Warning Electrostatic discharge ESD can damage circuit boards disk drives and other components The circuit board must only be handled at an ESD workstation If an approved station is not available some measure of p...

Страница 7: ...d also be protected inside a closed metallic antistatic envelope during shipment or storage Note The exterior coating on some metallic antistatic bags is sufficiently conductive to cause excessive battery drain if the bag comes in contact with the bottom side of the board HANDLING CARE Warning Care must be taken when handling the board not to touch the exposed circuitry with your fingers ...

Страница 8: ...oards mounting might be accomplished using a latching system Note Be careful not to over tighten the nylon mounting screws Optimum tightness is 1 lbf in 0 1 N m VL MPEE U2 DIMENSIONS AND CONNECTORS The VL MPEe U2 complies with Mini PCIe card full size dimensional standards Dimensions are given below to help with pre production planning and layout Figure 1 VL MPEe U2 Dimensions and Connectors Not t...

Страница 9: ...0 1 mm Pico clasp VL CBR 1014 12 dual channel serial cable latching 10 pin connector to dual D sub 9 pin 12 J3 GPIO Molex 501330 1500 vertical 1x15 1 mm Pico clasp VL CBR 1502 12 GPIO 15 pin VL CBR 1502A cable to VL CBR 2004B 20 pin screw terminal paddleboard 14 VL CBR 2004B DIMENSIONS AND CONNECTORS The VL CBR 1502 cable assembly consists of the VL CBR 1502A cable and the VL CBR 2004B paddleboard...

Страница 10: ...0 2 Bare wire 18 30 AWG 14 J2 GPIO3 5 Bare wire 18 30 AWG 14 J3 GPIO6 9 Bare wire 18 30 AWG 14 J4 GPIO10 11 Bare wire 18 30 AWG 14 J5 Interface to MPEe U2 board Molex 501189 2010 2x10 1 mm Pico Clasp receptacle VL CBR 1502A 20 position screw terminal 12 latching cable to VL CBR 2004B I O board Jumper Blocks VL MPEE U2 JUMPERS AS SHIPPED CONFIGURATION All jumpers on the VL MPEe U2 are shipped in th...

Страница 11: ... terminated Out Not terminated Out V1 5 6 COM3 RS 422 Rx or RS 485 Termination In 120 Ohm terminated Out Not terminated Out V1 7 8 COM4 RS 422 Rx or RS 485 Termination In 120 Ohm terminated Out Not terminated Out V2 1 2 COM1 Mode In RS 422 485 Mode Out RS 232 Mode Out V2 3 4 COM2 Mode In RS 422 485 Mode Out RS 232 Mode Out V2 5 6 COM3 Mode In RS 422 485 Mode Out RS 232 Mode Out V2 7 8 COM4 Mode In...

Страница 12: ...5 termination resistor for each port independently The termination resistor should be enabled for RS 422 and the RS 485 endpoint station It should be disabled for RS 232 and for RS 485 intermediate stations If RS 485 mode is used the half duplex differential twisted pair TxD RxD and TxD RxD is formed by connecting both transmit and receive pairs together For example with COM1on VL CBR 1014 connect...

Страница 13: ...S TxD 2 DB9b 3 TXD TxD 3 8 CTS RxD 4 2 RXD RxD 5 5 Ground Ground 6 COM2 7 RTS TxD 7 DB9a 3 TXD TxD 8 8 CTS RxD 9 2 RXD RxD 10 5 Ground Ground Note Pins 1 4 6 and 9 of each DB9 connector are not connected Table 5 J2 Serial Port Connector Pinout VL MPEe U2 J2 Pin VL CBR 1014 Connector Pin Signal RS 232 RS 422 485 1 COM3 7 RTS TxD 2 DB9b 3 TXD TxD 3 8 CTS RxD 4 2 RXD RxD 5 5 Ground Ground 6 COM4 7 RT...

Страница 14: ...ystems wishing to use the serial port interface and GPIO interface simultaneously synchronize their access to this COM port resource through a single application GPIO CONNECTOR Connector J3 provides a vertical 1x15 1 mm Pico Clasp connector for the GPIO interface The VersaLogic VL CBR 1502 cable assembly consisting of the VL CBR 1502A cable and the VL CBR 2004B paddleboard attaches to connector J3...

Страница 15: ...IO3 GPIO2 J2 Pin 5 DIO4 GPIO3 4 DGND1 Ground 3 DIO5 GPIO4 2 DIO6 GPIO5 1 DGND2 Ground J3 Pin 5 DIO7 GPIO6 4 DIO8 GPIO7 3 DGND2 Ground 2 DIO9 GPIO8 1 DIO10 GPIO9 J4 Pin 5 DGND2 Ground 4 DIO11 GPIO10 3 DIO12 GPIO11 2 DGND2 Ground 1 DIO13 Ground LEDs There are two blue LEDs D1 and D2 that can enabled by driving the active low XR17V354 MPIO 12 D2 and MPIO 13 D1 A third blue LED D4 is a power good outp...

Страница 16: ...Visit the software support page to download the VersaAPI package Open and Close Calls The library interface must be opened by every application that wishes to make calls into the API and also must be closed by that same application when exiting VSL_Open Opens the VersaAPI library Syntax VL_OSALIB_API unsigned long VSL_Open Inputs none Outputs unsigned long This call returns 0 if the open was a suc...

Страница 17: ...nor 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_CH...

Страница 18: ...al level of the specified channel Syntax VL_OSALIB_API void VSL_DIOSetChannelLevel unsigned char Channel unsigned char Level Inputs unsigned char Channel The DIO channel number to be set unsigned char Level The DIO level to be set DIO_CHANNEL_HIGH or DIO_CHANNEL_LOW Outputs none VSL_DIOSetChannelDirection Sets the signal direction of the specified channel Syntax VL_OSALIB_API void VSL_DIOSetChanne...

Отзывы: