Copyright IXXAT Automation GmbH
UCI Programming Manual FlexRay, V1.13
Annex
70
6.2.2.6
XAT_GetDefaultHwEntry
Function:
HRESULT XATREG_CALLATTR
XAT_GetDefaultHwEntry
( DWORD * p_dw_key );
Description:
Determines the default-hardware entry.
Parameter:
p_dw_key (in/out)
Pointer to a DWORD in which the index number of the PC/CAN-
interface is deposited.
Return value:
ERROR_SUCCESS –> success
HRESULT errorcode otherwise
Example:
DWORD dwBrdKey;
XAT_BoardCFG sConfig;
HRESULT hr;
hr = XAT_GetDefaultHwEntry( &dwBrdKey );
if ( ERROR_SUCCESS == hr )
{
hr = XAT_GetConfig( dwBrdKey
, &sConfig );
if ( ERROR_SUCCESS == hr )
{
INT32 hBrd = VCI2_PrepareBoard( sConfig.board_type
, sConfig.board_no
, sConfig.sz_CardAddString
, strlen(sConfig.sz_CardAddString)
...);
...
}
}
6.2.2.7
XAT_BoardCFG
Reading of the information on registered PC/CAN-interfaces is done via the struc-
ture
XAT_BoardCFG
Description
~.board_no
Unique index number
~.board_type
type of the PC/CAN-interface
~.sz_brd_name[255]
Name
~.sz_manufacturer[50]
Manufacturer
~.sz_brd_info[50];
additional information
~.sz_CardAddString[255]
;
Card-specific information
Содержание FlexRay CCM
Страница 6: ......