Copyright IXXAT Automation GmbH
UCI Programming Manual FlexRay, V1.13
Annex
64
Example:
XAT_BoardCFG sConfig;
HRESULT hr;
hr = XAT_SelectHardware( hwndParent
, &sConfig );
if ( 1 == hr )
{
INT32 hBrd = VCI2_PrepareBoard( sConfig.board_type
, sConfig.board_no
, sConfig.sz_CardAddString
, strlen(sConfig.sz_CardAddString)
, ...);
...
}
6.2.2.2
XAT_GetConfig
Function:
HRESULT XATREG_CALLATTR
XAT_GetConfig
( DWORD dw_key, XAT_BoardCFG* pConfig );
Description:
Reads the configuration of the PC/CAN-interface which is regis-
tered with the system under the unique index number dw_key.
The configuration is deposited in the structure indicated by the
pointer pConfig.
Parameter:
dw_key (in)
Unique index number under which the PC/CAN-interface is regis-
tered with the system.
pConfig (out)
Pointer to a data structure in which retrieves the board configu-
ration.
Return value:
ERROR_SUCCESS –> success
HRESULT errorcode otherwise
Example:
XAT_BoardCFG sConfig;
hr = XAT_GetConfig( dwBrdKey // Unique board index that identifies
// the board.
, &sConfig );
if ( ERROR_SUCCESS == hr )
{
INT32 hBrd = VCI2_PrepareBoard( sConfig.board_type
, sConfig.board_no
, sConfig.sz_CardAddString
, strlen(sConfig.sz_CardAddString)
, ...);
...
}
Содержание FlexRay CCM
Страница 6: ......