RE-350 16bit Sample Code (\16BITSDK)
Notes:
1)This example application was written and compiled with Microsoft C/C++ and SDK Version 1.52 (16 bits ONLY). Open the project in Microsoft Visual C/C++ to edit and recompile.
The DLL and example application are built separately. You can use RE350DLL.DLL as is by importing the functions described below (or in RE350.H).
You can also rebuild the application in
nmake -fexample.mak
2)RE350.C and RE350.H constitute the basic driver and are generalized to work with any application. All of the functions return an error code (defined in RE350.H) to indicate whether the operation was successful.
Initialize communications with the RE-350:
int FAR PASCAL | RE350_Open( int iComPort ) |
int iComPort: | |
Execute an | |
int FAR PASCAL | RE350_Command( int iDevice, int nCmd, WORD wRequest, LPWORD lpwResponse ); |
int iDevice: | device |
int nCmd: | Command defined in RE350.H. |
WORD wRequest: | Request data if required by command. |
| (Use RE350_NULL_REQUEST if not required). |
LPWORD wRequest:Pointer to response (or NULL). | |
Close communications with the | |
VOID FAR PASCAL | RE350_Close( VOID ); |
4)EXAMPLE.C is a simple application which demonstrates the operation of the driver. After getting this to compile in your environment, you can add additional commands (via RE350_Command) to test the camera’s operation.
All of the
62