Programming interface
4.1 The functions of the DLL
SIMATIC RF1060R
12
Operating Instructions, 05/2017, C79000-G8976-C432-02
Function call
int
brp_open_usb_session(
int * Handle,
DWORD ProductID
);
Description of the parameters
Parameter
Description
brp_open_usb_session The parameter opens a connection to the reader via USB
Handle
Session key initialized by this function.
ProductID
The product ID of the device to be connected.
Return value
•
BRP_OK
•
BRP_ERR_BUSY
•
BRP_ERR_GENERAL_IO
•
BRP_ERR_BUFFER_OVERFLOW
•
BRP_ERR_NO_MORE_HANDLES
•
BRP_ERR_INSUFFICIENT_MEM
You will find more information on return values in the section "Return val-
4.1.2
brp_close_session
This function terminates an existing USB connection that was established earlier.
Function call
int
brp_close_session(
int Handle
);
Description of the parameters
Parameter
Description
brp_close_session
This parameter terminates a connection.
Handle
The session key returned by the function "brp_open_usb_session()".
Return value
•
BRP_OK
•
BRP_ERR_WRONG_HANDLE
You will find more information on return values in the section "Return values
(Page 18)".