![]() |
Functions | |
| KvlcStatus | kvlcGetErrorText (KvlcStatus error, char *buffer, unsigned int buffer_size) |
| KvlcStatus | kvlcGetVersion (unsigned int *major, unsigned int *minor, unsigned int *build) |
| KvlcStatus | kvlcCreateConverter (KvlcHandle *handle, const char *filename, int format) |
| KvlcStatus | kvlcDeleteConverter (KvlcHandle handle) |
| KvlcStatus | kvlcEventCount (KvlcHandle handle, unsigned int *count) |
| KvlcStatus | kvlcEventCountEx (KvlcHandle handle, int64 *count) |
| KvlcStatus | kvlcConvertEvent (KvlcHandle handle) |
| KvlcStatus | kvlcSetInputFile (KvlcHandle handle, const char *filename, int format) |
| KvlcStatus | kvlcNextInputFile (KvlcHandle handle, const char *filename) |
| KvlcStatus | kvlcIsOutputFilenameNew (KvlcHandle handle, int *updated) |
| KvlcStatus | kvlcGetOutputFilename (KvlcHandle handle, char *filename, int len) |
| KvlcStatus | kvlcGetWriterPropertyDefault (int format, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcSetProperty (KvlcHandle handle, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcGetProperty (KvlcHandle handle, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcIsOverrunActive (KvlcHandle handle, int *overrun) |
| KvlcStatus | kvlcResetOverrunActive (KvlcHandle handle) |
| KvlcStatus | kvlcIsDataTruncated (KvlcHandle handle, int *truncated) |
| KvlcStatus | kvlcResetDataTruncated (KvlcHandle handle) |
| KvlcStatus | kvlcAttachFile (KvlcHandle handle, const char *filename) |
| KvlcStatus | kvlcGetReaderPropertyDefault (int format, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcIsDlcMismatch (KvlcHandle handle, int *mismatch) |
| KvlcStatus | kvlcResetDlcMismatch (KvlcHandle handle) |
| KvlcStatus | kvlcGetDlcMismatchList (KvlcHandle handle, unsigned int *MsgIds, unsigned int *MsgDlc, unsigned int *MsgOccurance, unsigned int *length) |
| KvlcStatus kvlcAttachFile | ( | KvlcHandle | handle, |
| const char * | filename | ||
| ) |
Attach a file to be included in the output file, e.g. used to add a database or a movie to the output.
| [in] | handle | An open handle to a converter. |
| [out] | filename | File to be included in output, a pointer to a NULL terminated array of chars. |
| KvlcStatus kvlcConvertEvent | ( | KvlcHandle | handle | ) |
Convert one event from input file and write it to output file.
| [in] | handle | An open handle to a converter. |
| KvlcStatus kvlcCreateConverter | ( | KvlcHandle * | handle, |
| const char * | filename, | ||
| int | format | ||
| ) |
Create a new converter.
| [out] | handle | An open handle to a converter. |
| [in] | filename | Output filename, a pointer to a NULL terminated array of chars. |
| [in] | format | Output format, use FILE_FORMAT_xxx. |
| KvlcStatus kvlcDeleteConverter | ( | KvlcHandle | handle | ) |
Delete a converter and close all files.
| [in] | handle | An open handle to a converter. |
| KvlcStatus kvlcEventCount | ( | KvlcHandle | handle, |
| unsigned int * | count | ||
| ) |
Get the estimated number of remaining events in the input file. This can be useful for displaying progress during conversion.
| [in] | handle | An open handle to a converter. |
| [out] | count | The estimated number of remaining events in the input file. |
| KvlcStatus kvlcEventCountEx | ( | KvlcHandle | handle, |
| int64 * | count | ||
| ) |
Get the estimated number of remaining events in the input file. This can be useful for displaying progress during conversion.
| [in] | handle | An open handle to a converter. |
| [out] | count | The estimated number of remaining events in the input file. |
| KvlcStatus kvlcGetDlcMismatchList | ( | KvlcHandle | handle, |
| unsigned int * | MsgIds, | ||
| unsigned int * | MsgDlc, | ||
| unsigned int * | MsgOccurance, | ||
| unsigned int * | length | ||
| ) |
Return sets of mismatching msg id and dlc The length parameter is used to get the necessary length or to inform the API how long the supplied list is.
| [in] | handle | An open handle to a converter. |
| [out] | MsgIds | An array to hold the returned message ids |
| [out] | MsgDlc | An array to hold the returned message dlc |
| [out] | MsgOccurance | An array to hold the returned number of occurance of each mismatch |
| [in,out] | length | Use 0 in to get the necessary length of the arrays out |
| KvlcStatus kvlcGetErrorText | ( | KvlcStatus | error, |
| char * | buffer, | ||
| unsigned int | buffer_size | ||
| ) |
Convert a KvlcStatus error code to a text.
| [in] | error | The error code to convert. |
| [out] | buffer | Buffer to receive error text, a pointer to a NULL terminated array of chars. |
| [in] | buffer_size | Buffer size in bytes. |
| KvlcStatus kvlcGetOutputFilename | ( | KvlcHandle | handle, |
| char * | filename, | ||
| int | len | ||
| ) |
Get the filename of the current output file.
This function can be used in conjunction with kvlcIsOutputFilenameNew() to report current filename when splitting output into multiple files.
| [in] | handle | An open handle to a converter. |
| [out] | filename | Buffer to receive output filename, a pointer to a NULL terminated array of chars. |
| [in] | len | Buffer size in bytes. |
| KvlcStatus kvlcGetProperty | ( | KvlcHandle | handle, |
| unsigned int | property, | ||
| void * | buf, | ||
| unsigned int | len | ||
| ) |
Get a property value. The buffer pointer and length of the data type must match the property specified in PROPERTY_xxx.
| [in] | handle | An open handle to a converter. |
| [in] | property | Property, use PROPERTY_xxx. |
| [out] | buf | Buffer to receive property value. |
| [in] | len | Buffer size in bytes. |
| KvlcStatus kvlcGetReaderPropertyDefault | ( | int | format, |
| unsigned int | property, | ||
| void * | buf, | ||
| unsigned int | len | ||
| ) |
Get the default value for a property. The buffer pointer and length of the data type must match the property specified in PROPERTY_xxx, e.g.
time_int64 offset; kvlcGetReaderPropertyDefault(KVLC_PROPERTY_OFFSET, &offset, sizeof(offset));
| [in] | format | Output format, use FILE_FORMAT_xxx. |
| [in] | property | Property, use PROPERTY_xxx. |
| [out] | buf | Buffer to receive property value. |
| [in] | len | Buffer size in bytes. |
| KvlcStatus kvlcGetVersion | ( | unsigned int * | major, |
| unsigned int * | minor, | ||
| unsigned int * | build | ||
| ) |
Returns the version of the kvcnvlib DLL.
| [out] | major | Major version number. |
| [out] | minor | Minor version number. |
| [out] | build | Build version number. |
| KvlcStatus kvlcGetWriterPropertyDefault | ( | int | format, |
| unsigned int | property, | ||
| void * | buf, | ||
| unsigned int | len | ||
| ) |
Get the default value for a property. The buffer pointer and length of the data type must match the property specified in PROPERTY_xxx, e.g.
time_int64 offset; kvlcGetWriterPropertyDefault(KVLC_PROPERTY_OFFSET, &offset, sizeof(offset));
| [in] | format | Output format, use FILE_FORMAT_xxx. |
| [in] | property | Property, use PROPERTY_xxx. |
| [out] | buf | Buffer to receive property value. |
| [in] | len | Buffer size in bytes. |
| KvlcStatus kvlcIsDataTruncated | ( | KvlcHandle | handle, |
| int * | truncated | ||
| ) |
Get truncation status.
Truncation occurs when the selected output converter can't write the all bytes in a data frame to file. This can happen if CAN FD data is extracted to a format that only supports up to 8 data bytes, e.g. KVLC_FILE_FORMAT_KME40.
It can also happen if KVLC_PROPERTY_LIMIT_DATA_BYTES is set to limit the number of data bytes in output.
| [in] | handle | An open handle to a converter. |
| [out] | truncated | Not zero if data is truncated. |
| KvlcStatus kvlcIsDlcMismatch | ( | KvlcHandle | handle, |
| int * | mismatch | ||
| ) |
Return dlc mismatch status (i.e. CAN id is found in db but it has mismatching dlc)
| [in] | handle | An open handle to a converter. |
| [in] | mismatch | Not zero if a mismatch occured |
| KvlcStatus kvlcIsOutputFilenameNew | ( | KvlcHandle | handle, |
| int * | updated | ||
| ) |
Check if the converter has created a new file. It is only true once after a new file has been created. Used when splitting output into multiple files.
| [in] | handle | An open handle to a converter. |
| [out] | updated | Not zero if a new file has been created. |
| KvlcStatus kvlcIsOverrunActive | ( | KvlcHandle | handle, |
| int * | overrun | ||
| ) |
Get overrun status.
Overruns can occur during logging with a Memorator if the bus load exceeds the logging capacity. This is very unusual, but can occur if a Memorator runs complex scripts and triggers.
| [in] | handle | An open handle to a converter. |
| [out] | overrun | Not zero if an overrun occurred. |
| KvlcStatus kvlcNextInputFile | ( | KvlcHandle | handle, |
| const char * | filename | ||
| ) |
Select next input file.
| [in] | handle | An open handle to a converter. |
| [in] | filename | Next input filename, a pointer to a NULL terminated array of chars. |
| KvlcStatus kvlcResetDataTruncated | ( | KvlcHandle | handle | ) |
Reset truncation status.
| [in] | handle | An open handle to a converter. |
| KvlcStatus kvlcResetDlcMismatch | ( | KvlcHandle | handle | ) |
Reset dlc mismatch status
| [in] | handle | An open handle to a converter. |
| KvlcStatus kvlcResetOverrunActive | ( | KvlcHandle | handle | ) |
Reset overrun status.
| [in] | handle | An open handle to a converter. |
| KvlcStatus kvlcSetInputFile | ( | KvlcHandle | handle, |
| const char * | filename, | ||
| int | format | ||
| ) |
Select input file.
| [in] | handle | An open handle to a converter. |
| [in] | filename | Input filename, a pointer to a NULL terminated array of chars. |
| [in] | format | Input format, use FILE_FORMAT_xxx. |
| KvlcStatus kvlcSetProperty | ( | KvlcHandle | handle, |
| unsigned int | property, | ||
| void * | buf, | ||
| unsigned int | len | ||
| ) |
Set a property value. The buffer pointer and length of the data type must match the property specified in PROPERTY_xxx.
| [in] | handle | An open handle to a converter. |
| [in] | property | Property, use PROPERTY_xxx. |
| [in] | buf | Buffer containing property value. |
| [in] | len | Buffer size in bytes. |