Copyright IXXAT Automation GmbH
UCI Programming Manual FlexRay, V1.13
Annex
69
Example for XATREG_FIND_ADDRESS:
Search for the installed iPC-I 320 with address 0xD0000.
DWORD dwBrdKey;
DWORD dwBrdType = VCI_IPCI320;
DWORD dwBrdAddress = 0xD0000;
HRESULT hr = XAT_FindHwEntry( XATREG_FIND_ADDRESS
, &dwBrdKey
, &dwBrdType
, NULL
, dwBrdAddress );
if ( ERROR_SUCCESS == hr )
{
// dwBrdKey holds the unique board index now which can be used to
// open the found board.
}
Example for XATREG_FIND_ENTRY_WITH_VALUE:
Search for the installed tinCAN with IRQ 15.
DWORD dwBrdKey;
DWORD dwBrdType = VCI_PCMCIA;
char caEntryName[255] = "IRQ";
DWORD dwEntryValue = 15;
HRESULT hr = XAT_FindHwEntry( XATREG_FIND_ENTRY_WITH_VALUE
, &dwBrdKey
, &dwBrdType
, caEntryName
, dwEntryValue );
if ( ERROR_SUCCESS == hr )
{
// dwBrdKey holds the unique board index now which can be used to
// open the found board.
}
6.2.2.5
XAT_SetDefaultHwEntry
Function:
HRESULT XATREG_CALLATTR
XAT_SetDefaultHwEntry
( DWORD dw_key );
Description:
Sets the default-hardware entry to the PC/CAN-interface with the
index number dw_key.
Parameter:
dw_key (in/out)
index number of the PC/CAN-interface.
Return value:
ERROR_SUCCESS –> success
HRESULT errorcode otherwise
Содержание FlexRay CCM
Страница 6: ......