85
Status Access API
Section A-4
A-4
Status Access API
A-4-1
CPNT_GetBoardVersion (Get Board Version)
Purpose
Get the Board version.
Call Format
BOOL CPNT_GetBoardVersion (
HANDLE Handle,
BOARD_VERSION_INFO *VersionInfo
) ;
Argument
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
This is used to read the Identity object information of CompoNet Master
Board.
BOARD_VERSION_INFO structure
A-4-2
CPNT_GetDriverVersion (Get Driver Version)
Purpose
Get the device driver version.
Call Format
BOOL CPNT_GetDriverVersion (
HANDLE Handle,
DRIVER_VERSION_INFO *VersionInfo
) ;
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
BOARD_VER
SION_INFO
*VersionInfo
OUT
Pointer to store the version
information
Type
Parameter
Description
WORD
VendorCode
Company code of the Board manufacture,
It is 0x002F.
WORD
DeviceType
Device type of the Board,
It is 0x000C.
WORD
ProductCode
Product code of the Board.
It is 0x0015 for the product 3G8F7-CRM21.
It is 0x0016 for the product 3G8F8-CRM21.
BYTE
MajorVersion
Major board revision
BYTE
MinorVersion
Minor board revision
DWORD
SerialNumber
Board serial number
CHAR
ProductName[
32]
Name of the Board,
It is 3G8F7-CRM21 for the product 3G8F7-CRM21.
It is 3G8F8-CRM21 for the product 3G8F8-CRM21.
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......