# 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`

  An enumeration.

  `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`

  LIN message flags

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

  `BIT_ERROR` = 128
  `CSUM_ERROR` = 16
  `NODATA` = 8
  `PARITY_ERROR` = 32
  `RX` = 2
  `SYNCH_ERROR` = 64
  `SYNC_ERROR` = 64
  `TX` = 1
  `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`

  Used in `Channel.setupLIN`

  `ENHANCED_CHECKSUM` = 1
  `VARIABLE_DLC` = 2