![]() |
Start, stop and download triggers. More...
Functions | |
| canStatus | kvDiagConfigure (const CanHandle hnd, const char *configBuffer, DiagDataPtr diagData) |
| canStatus | kvDiagStart (const CanHandle hnd) |
| canStatus | kvDiagStop (const CanHandle hnd) |
| canStatus | kvDiagReadSampleRaw (DiagDataPtr diagData, uint8_t *buffer, uint32_t bufferLength, int *sampleLength) |
| canStatus | kvDiagGetNumberOfAnalyzers (const CanHandle hnd, uint8_t *analyzerCount) |
| canStatus | kvDiagGetAnalyzerInfo (const CanHandle hnd, uint8_t analyzerNo, uint32_t *type, uint32_t *version) |
Start, stop and download triggers.
| canStatus kvDiagConfigure | ( | const CanHandle | hnd, |
| const char * | configBuffer, | ||
| DiagDataPtr | diagData | ||
| ) |
Download a trigger to an attached analyzer and connect it to a diagnostic data buffer. There are two types of triggers:
1. Autobaud trigger. This trigger is used to calculate bitrate.
2. Normal trigger. This trigger is used when the bitrate is known, e.g.:
where
| [in] | hnd | An open handle to a CAN channel with an attached analyzer. |
| [in] | configBuffer | A null terminated buffer containing a trigger configuration, see TRIGGER_AUTOBAUD and TRIGGER_1MBIT. |
| [in] | diagData | A diagnostic data buffer allocated with kvDiagAlloc(). |
| canStatus kvDiagGetAnalyzerInfo | ( | const CanHandle | hnd, |
| uint8_t | analyzerNo, | ||
| uint32_t * | type, | ||
| uint32_t * | version | ||
| ) |
Get the number of analyzers.
| [in] | hnd | An open handle to a CAN channel. |
| [in] | analyzerNo | The numbering is zero based. |
| [out] | type | The analyzer type. |
| [out] | version | The analyzer version. |
Get the number of analyzers.
| [in] | hnd | An open handle to a CAN channel. |
| [out] | analyzerCount | Number of analyzers. |
| canStatus kvDiagReadSampleRaw | ( | DiagDataPtr | diagData, |
| uint8_t * | buffer, | ||
| uint32_t | bufferLength, | ||
| int * | sampleLength | ||
| ) |
Read (and consume) one full sample from an analyzer. The sample is written to a buffer, and sampleLength is updated with the length of the sample.
| [in] | diagData | Pointer to a DiagDataPtr. |
| [out] | buffer | Pointer to buffer to receive the sample. |
| [in] | bufferLength | The length of the buffer. |
| [out] | sampleLength | The length of read sample. |
Start data acquisition.
| [in] | hnd | An open handle to a CAN channel with an attached analyzer. |
Stop data acquisition.
| [in] | hnd | An open handle to a CAN channel with an attached analyzer. |