ISO15765_EnableNetworks Method - neoVI API This method enables the use of ISO15765-2 on a CAN network. icsneoISO15765_EnableNetwroks must be called before using icsneoISO15765_TransmitMessage or icsneoISO15765_ReceiveMessage.
C/C++ Declare
Copy void _stdcall icsneoISO15765_EnableNetworks ( void * hObject , unsigned int iNetwork);
Visual Basic .NET Declare
Copy Public Declare Function icsneoISO15765_EnableNetworks Lib “icsneo40.dll” (ByVal hObject As IntPtr, ByVal Network As UInt32) As Int32
C# Declare
Copy [ DllImport (“ icsneo40 . dll ”)]
public static extern Int32 icsneoISO15765_EnableNetworks ( IntPtr hObject , UInt32 Network);
Parameters
hObject
[in] Handle which specifies the driver object created with the OpenPort method.
lNetwork
[in] Specifies which CAN network the status is requested for. Can be one of the following values:
Return Values
None.
Remarks
None.
Examples
C/C++ Example
Copy lResult = icsneoISO15765_EnableNetworks (m_hObject , NETID_HSCAN);
C# Example
Copy lResult = icsNeoDll . icsneoISO15765_EnableNetworks (m_hObject , ( int ) eNETWORK_ID . NETID_HSCAN );
Visual Basic .NET Example
Copy lResult = icsneoISO15765_EnableNetworks(m_hObject, NETID_HSCAN)