# Enumerations

## ChannelData

class `canlib.linlib.``ChannelData`

  linCHANNELDATA_xxx

  These defines are used in `getChannelData`.

  `CARD_FIRMWARE_REV` = 9

## ChannelType

class `canlib.linlib.``ChannelType`

  Flags for `openChannel`

  `MASTER` = 1
  `SLAVE` = 2

## Error

class `canlib.linlib.``Error`
  `CANERROR` = -15
  `DRIVER` = -18
  `DRIVERFAILED` = -19
  `ERRRESP` = -16
  `INTERNAL` = -22
  `INVHANDLE` = -14
  `LICENSE` = -21
  `MASTERONLY` = -5
  `NOCARD` = -20
  `NOCHANNELS` = -10
  `NOHANDLES` = -13
  `NOMEM` = -9
  `NOMSG` = -1
  `NOTFOUND` = -8
  `NOTINITIALIZED` = -12
  `NOTRUNNING` = -3
  `NOT_IMPLEMENTED` = -26
  `NO_ACCESS` = -23
  `NO_REF_POWER` = -25
  `PARAM` = -7
  `RUNNING` = -4
  `SLAVEONLY` = -6
  `TIMEOUT` = -11
  `VERSION` = -24
  `WRONGRESP` = -17

## MessageDisturb

class `canlib.linlib.``MessageDisturb`

  LIN illegal message flags

  `CSUM` = 1
  `PARITY` = 2

## MessageFlag

class `canlib.linlib.``MessageFlag`(*args, **kwds)

  LIN message flags

  The following flags is used in `canlib.LINFrame.flags`.

  `BIT_ERROR` = <MessageFlag.BIT_ERROR: 128>
  `CSUM_ERROR` = <MessageFlag.CSUM_ERROR: 16>
  `NODATA` = <MessageFlag.NODATA: 8>
  `PARITY_ERROR` = <MessageFlag.PARITY_ERROR: 32>
  `RX` = <MessageFlag.RX: 2>
  `SYNCH_ERROR` = <MessageFlag.SYNCH_ERROR: 64>
  `TX` = <MessageFlag.TX: 1>
  `WAKEUP_FRAME` = <MessageFlag.WAKEUP_FRAME: 4>

## MessageParity

class `canlib.linlib.``MessageParity`

  LIN message parity

  - `MessageParity.STANDARD` == `LIN_MSG_USE_STANDARD_PARITY`
  - `MessageParity.ENHANCED` == `LIN_MSG_USE_ENHANCED_PARITY`
  `ENHANCED` = 8
  `STANDARD` = 4

## Setup

class `canlib.linlib.``Setup`(*args, **kwds)

  Used in `Channel.setupLIN`

  `ENHANCED_CHECKSUM` = <Setup.ENHANCED_CHECKSUM: 1>
  `VARIABLE_DLC` = <Setup.VARIABLE_DLC: 2>