Echelon OpenLDV User Manual
Page 6

vi
LdvCombineFlags Enumeration ........................................................... 39
LdvDeviceCaps Enumeration ............................................................... 40
Structures and Enumerations for the Driver API ..................................... 42
LDVDriverInfo Structure ...................................................................... 42
LdvDriverID Enumeration ................................................................... 43
LdvDriverType Enumeration ............................................................... 44
Windows Messages for Session Notifications ............................................. 44
OpenLDV API Return Codes ....................................................................... 45
Example: A Simple OpenLDV Application ................................................ 52
Chapter 3. Sending/Receiving Messages with the OpenLDV API ....... 57
Layer 2 Buffer Structure ....................................................................... 61
Application Layer Header .............................................................. 61
Layer 2 Header ................................................................................ 61
Layer 5 Buffer Structure ....................................................................... 62
Application Layer Header .............................................................. 62
Message Header .............................................................................. 62
Network Address ............................................................................. 67
Message Data .................................................................................. 73
Sending Messages to the Network Interface ....................................... 75
Receiving Messages from the Network Interface ................................ 75
Using the Network Interface Command Interface .................................... 76
Downlink Commands ............................................................................ 76
Uplink Commands ................................................................................. 77
Immediate Commands .......................................................................... 77
Network Interface Commands .............................................................. 77
Chapter 4. The OpenLDV Developer Example ........................................ 89
COpenLDVapi and COpenLDVtrace .......................................................... 90
COpenLDVni, Message Pumps, and Message Dispatchers ...................... 90
Developer Example Diagram ...................................................................... 92
Chapter 5. Using the xDriver Default Profile .......................................... 93
Chapter 6. Extending xDriver ...................................................................... 99
Session Control Object ........................................................................ 108
Authentication Key Handling ................................................................... 111
Setting the Current Authentication Key ........................................... 111
Changing the Current Authentication Key ....................................... 112
Creating a Custom Lookup Extension in C++ ......................................... 113
Create a New Visual Studio Project ................................................... 114
Add a COM Object ............................................................................... 116