CanEasy COM-Help
CanEasy::IStack Interface Reference
Inheritance diagram for CanEasy::IStack:
CanEasy::IDatabaseItem

Detailed Description

Stack/Diag config that can be used to setup diagnosis parameter.

The stack can be used to send/receive UDS frames.

interface IStack : IDatabaseItem
{
HRESULT Content([out, retval] VARIANT *pData);
HRESULT Content([in] VARIANT vData);
HRESULT DefaultSession([out, retval] VARIANT_BOOL *pData);
HRESULT DefaultSession([in] VARIANT_BOOL vData);
HRESULT File([out, retval] BSTR *pData);
HRESULT File([in] BSTR vData);
HRESULT Overwrite([out, retval] VARIANT_BOOL *pData);
HRESULT Overwrite([in] VARIANT_BOOL vData);
HRESULT RxId([out, retval] LONG *pData);
HRESULT RxId([in] LONG vData);
HRESULT TxId([out, retval] LONG *pData);
HRESULT TxId([in] LONG vData);
HRESULT Timeout([out, retval] LONG *pData);
HRESULT Timeout([in] LONG vData);
HRESULT ServiceNamespaces([out, retval] IServiceNamespaceCol** ppVal);
HRESULT Services([out, retval] IServiceCol** ppVal);
HRESULT TransmitData([in]VARIANT data);
HRESULT TransmitDataAndWait([in]VARIANT data, [in] long timeout, [out, retval] VARIANT_BOOL*);
HRESULT ErrorCode([out, retval] IAttribute** error);
HRESULT LastResponse([out, retval] IAttribute** data);
HRESULT Disconnect();
HRESULT TransmitDataFunctional([in]VARIANT data);
HRESULT TransmitDataAndWaitFunctional([in]VARIANT data, [in] long timeout, [out, retval] VARIANT_BOOL*);
HRESULT TransmissionEvent([out, retval] ITransmissionEvent**);
HRESULT Import([in]BSTR file, [in]BSTR variant);
HRESULT SecurityAccess([in]VARIANT key, [out, retval] VARIANT_BOOL*);
HRESULT DTC([out, retval] IDTCContainer**);
HRESULT ServiceGroups([out, retval] IServiceGroupCol** ppVal);
};

Definition at line 10008 of file cand_tlb.idl.

Member Function Documentation

◆ Disconnect()

HRESULT CanEasy::IStack::Disconnect ( )

Just for DoIP: Disconnects from the target

◆ Import()

HRESULT CanEasy::IStack::Import ( [in] BSTR  file,
[in] BSTR  variant 
)

Imports a diagnostic file (like CDD, PDX)

Parameters
fileFile to import
variantVariant name to import

◆ SecurityAccess()

HRESULT CanEasy::IStack::SecurityAccess ( [in] VARIANT  key,
[out, retval] VARIANT_BOOL *   
)

Unlocks the target via seed and key (for VW projects)

Parameters
keyCan be byte array as long value
Returns
Returns True if security access was successfully

◆ TransmitData()

HRESULT CanEasy::IStack::TransmitData ( [in] VARIANT  data)

Transmits request and returns immediately

◆ TransmitDataAndWait()

HRESULT CanEasy::IStack::TransmitDataAndWait ( [in] VARIANT  data,
[in] long  timeout,
[out, retval] VARIANT_BOOL *   
)

Transmits request and waits for response or timeout

Parameters
dataData be transmitted
timeoutTime to wait in milliseconds
Returns
Returns True on positive response

◆ TransmitDataAndWaitFunctional()

HRESULT CanEasy::IStack::TransmitDataAndWaitFunctional ( [in] VARIANT  data,
[in] long  timeout,
[out, retval] VARIANT_BOOL *   
)

Transmits a request using the functional identifier and wait for the response

Parameters
dataData to be transmitted
timeoutTime to wait in milliseconds
Returns
Returns True on positive response

◆ TransmitDataFunctional()

HRESULT CanEasy::IStack::TransmitDataFunctional ( [in] VARIANT  data)

Transmits a request using the functional identifier

Property Documentation

◆ Content

VARIANT CanEasy::IStack::Content
getset

Deprecated: AIDA Stack config. AIDA stack is not used any more.

◆ DefaultSession

VARIANT_BOOL CanEasy::IStack::DefaultSession
getset

Default session that should be used after simulation start.

Can be used by a schedule table action

◆ DTC

IDTCContainer CanEasy::IStack::DTC
get

Returns container to access imported diagnostic trouble codes (DTCs)

◆ ErrorCode

IAttribute CanEasy::IStack::ErrorCode
get

Returns error code received as negative response

◆ File

BSTR CanEasy::IStack::File
getset

Deprecated: AIDA stack file. AIDA stack is not used any more.

◆ LastResponse

IAttribute CanEasy::IStack::LastResponse
get

Payload of last response

◆ Overwrite

VARIANT_BOOL CanEasy::IStack::Overwrite
getset

Deprecated: Overwrite rx/tx identifier from AIDA stack file. AIDA stack is not used any more.

◆ RxId

LONG CanEasy::IStack::RxId
getset

CAN Identifier to receive the response

◆ ServiceGroups

IServiceGroupCol CanEasy::IStack::ServiceGroups
get

Returns collection with namespaces containing services

◆ ServiceNamespaces

IServiceNamespaceCol CanEasy::IStack::ServiceNamespaces
get

Returns collection with namespaces containing services

◆ Services

IServiceCol CanEasy::IStack::Services
get

Returns collection with services

◆ Timeout

LONG CanEasy::IStack::Timeout
getset

Timeout in milliseconds. Response is expected to be received before this time.

◆ TransmissionEvent

ITransmissionEvent CanEasy::IStack::TransmissionEvent
get

Returns the class to get transmission events.

Example: Use item.TransmissionEvent.Active = true to activate the events.

◆ TxId

LONG CanEasy::IStack::TxId
getset

CAN Identifier to send the request

CanEasy::IStack::TransmissionEvent
ITransmissionEvent TransmissionEvent
Returns the class to get transmission events.
CanEasy::IStack::Timeout
LONG Timeout
CanEasy::IStack::TransmitDataFunctional
HRESULT TransmitDataFunctional([in]VARIANT data)
CanEasy::IStack::LastResponse
IAttribute LastResponse
CanEasy::IStack::TxId
LONG TxId
CanEasy::IStack::RxId
LONG RxId
CanEasy::IStack::ServiceNamespaces
IServiceNamespaceCol ServiceNamespaces
CanEasy::IStack::TransmitDataAndWait
HRESULT TransmitDataAndWait([in]VARIANT data, [in] long timeout, [out, retval] VARIANT_BOOL *)
CanEasy::IStack::Disconnect
HRESULT Disconnect()
CanEasy::IStack::DefaultSession
VARIANT_BOOL DefaultSession
Default session that should be used after simulation start.
CanEasy::IStack::ServiceGroups
IServiceGroupCol ServiceGroups
CanEasy::IStack::Content
VARIANT Content
CanEasy::IStack::File
BSTR File
CanEasy::IStack::TransmitData
HRESULT TransmitData([in]VARIANT data)
CanEasy::IStack::Services
IServiceCol Services
CanEasy::IStack::ErrorCode
IAttribute ErrorCode
CanEasy::IStack::TransmitDataAndWaitFunctional
HRESULT TransmitDataAndWaitFunctional([in]VARIANT data, [in] long timeout, [out, retval] VARIANT_BOOL *)
CanEasy::IStack::SecurityAccess
HRESULT SecurityAccess([in]VARIANT key, [out, retval] VARIANT_BOOL *)
CanEasy::IStack::Import
HRESULT Import([in]BSTR file, [in]BSTR variant)
CanEasy::IStack::DTC
IDTCContainer DTC
CanEasy::IStack::Overwrite
VARIANT_BOOL Overwrite