Setup

Allocate buffers, attach analyzers. More...

Functions

canStatus kvDiagAttach (const CanHandle hnd, uint32_t type)
 
canStatus kvDiagDetach (const CanHandle hnd)
 
canStatus kvDiagAlloc (DiagDataPtr *diagData)
 
canStatus kvDiagDealloc (DiagDataPtr *diagData)
 

Detailed Description

Allocate buffers, attach analyzers.

Function Documentation

◆ kvDiagAlloc()

canStatus kvDiagAlloc ( DiagDataPtr diagData)

Allocate diagnostic data buffer. The buffer can be connected to an analyzer with kvDiagConfigure()

Note
The kvDiag API is preliminary and will change!
Parameters
[out]diagDataPointer to a DiagDataPtr.
Returns
canOK (zero) if success
canERR_xxx (negative) if failure
See also
kvDiagDealloc()

◆ kvDiagAttach()

canStatus kvDiagAttach ( const CanHandle  hnd,
uint32_t  type 
)

Attach an analyzer to a CAN channel and prevent other channels from using it.

Note
The kvDiag API is preliminary and will change!
Parameters
[in]hndAn open handle to a CAN channel.
[in]typeDIAG_ANALYZER_TYPE_xxx
Returns
canOK (zero) if success
canERR_xxx (negative) if failure
See also
kvDiagDetach()

◆ kvDiagDealloc()

canStatus kvDiagDealloc ( DiagDataPtr diagData)

Deallocate diagnostic data buffer.

Note
The kvDiag API is preliminary and will change!
Parameters
[in]diagDataPointer to a DiagDataPtr.
Returns
canOK (zero) if success
canERR_xxx (negative) if failure
See also
kvDiagAlloc()

◆ kvDiagDetach()

canStatus kvDiagDetach ( const CanHandle  hnd)

Detach an analyzer from a channel.

Note
The kvDiag API is preliminary and will change!
Parameters
[in]hndAn open handle to a CAN channel.
Returns
canOK (zero) if success
canERR_xxx (negative) if failure
See also
kvDiagAttach()