from ..cenum import CEnum, CFlag
[docs]class Error(CEnum):
FAIL = -1 #: Generic error.
PARAM = -2 #: Error in supplied parameters.
EOF = -3 #: End of input file reached.
NOT_IMPLEMENTED = -4 #: Not implemented.
FILE_ERROR = -5 #: File I/O error.
FILE_EXISTS = -6 #: Output file already exists.
INTERNAL_ERROR = -7 #: Unhandled internal error.
NULL_POINTER = -8 #: Unexpected null pointer.
FILE_TOO_LARGE = -10 #: File size too large for specified format.
TYPE_MISMATCH = -11 #: Supplied parameter has incorrect type.
NO_FREE_HANDLES = -12 #: Too many open KvlcHandle handles.
NO_INPUT_SELECTED = -13 #: Missing call to kvlcSetInputFile or kvlcFeedSelectFormat.
CONVERTING = -14 #: Call failed since conversion is running.
BUFFER_SIZE = -15 #: Supplied buffer too small to hold the result.
INVALID_LOG_EVENT = -30 #: Event is unknown to converter.
NO_TIME_REFERENCE = -31 #: Required timestamp missing.
TIME_DECREASING = -32 #: Decreasing time between files.
MIXED_ENDIANESS = -33 #: Wrong data type in MDF.
RESULT_TOO_BIG = -34 #: Result is too big for an out-parameter
[docs]class ChannelMask(CFlag):
"""Masking channels
The `ChannelMask` is used in `Converter.addDatabaseFile` to indicate which channels to use.
Multiple channels may be specified using `|`, e.g. to specify channel one and three use::
channel_one_and_three = ChannelMask.ONE | ChannelMask.THREE
.. versionchanged:: 1.20
Added `ALL` as a convenience.
"""
ONE = 0x01 #: Mask for first channel
TWO = 0x02 #: Mask for second channel
THREE = 0x04 #: Mask for third channel
FOUR = 0x08 #: Mask for fourth channel
FIVE = 0x10 #: Mask for fifth channel
ALL = 0xffff #: Mask for all channels