1 diagnostics functions, Bpbgetversion function, Bpbgeterror function – Lenze 3241C User Manual

Page 9: Diagnostics functions, Api functions 3

Advertising
background image

API

functions

3

7

3.3

Diagnostics, service functions and network management

3.3.1

Diagnostics functions
The diagnostics function provide some return information on the version, available

errors, and states of the backplane buses.

BpbGetVersion function
The BpbGetVersion function supplies the version of the backplane bus driver.
Parameter

[in] HANDLE

hOpen

Pointer to open context (handle) for identification

[out] PSTRING

pszVersion

Version of the backplane bus driver

Return values

S_OK Successful

E_HANDLE

Incorrect (handle is invalid)

BpbGetError function
In the status register an error status is signalised. It contains a byte error code. The
BpbGetError function reads out this error code from the status register of the
backplane bus.
Parameter

[in] HANDLE

hOpen

Pointer to open context (handle) for identification

[out] PUCHAR

pbError

Error code

Return values

S_OK Successful

E_HANDLE

Incorrect (handle is invalid)

A description of the error code can be found in the chapter "Error code“.

Advertising