plin package

Submodules

plin.enums module

class plin.enums.PLINBaudrate(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN baudrate range.

MAX = 20000
MIN = 1000
class plin.enums.PLINBusState(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN Bus hardware state.

ACTIVE = 2
AUTOBAUD = 1
GND_SHORT = 6
SLEEP = 3
UNINIT = 0
VBAT_MISSING = 7
class plin.enums.PLINError(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN error.

FAIL = 1
FRAME = 4
ILL_MODE = 7
ILL_SCHEDULE = 6
INITIALIZE = 2
OK = 0
SCHEDULER = 3
SLOTPOOL = 5
class plin.enums.PLINFrameChecksumType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN frame checksum type.

AUTO = 3
CLASSIC = 1
CUSTOM = 0
ENHANCED = 2
class plin.enums.PLINFrameDirection(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN frame direction.

DISABLED = 0
PUBLISHER = 1
SUBSCRIBER = 2
SUBSCRIBER_AUTO_LEN = 3
class plin.enums.PLINFrameErrorFlag(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntFlag

LIN frame received (error) flags.

BAD_CS = 32
BUS_SHORT_GND = 64
BUS_SHORT_VBAT = 128
INC_SYNC = 1
OTHER_RSP = 512
PARITY0 = 2
PARITY1 = 4
RESERVED = 256
SLV_NOT_RSP = 8
TIMEOUT = 16
class plin.enums.PLINFrameFlag(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntFlag

LIN frame flags for frame table entry.

IGNORE_DATA = 4
NONE = 0
RSP_ENABLE = 1
SINGLE_SHOT = 2
class plin.enums.PLINFrameID(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

DIAG_MASTER_REQ = 60
DIAG_SLAVE_RSP = 61
MAX = 63
MIN = 0
RESERVED = 63
UNC_MAX = 59
UNC_MIN = 0
USER = 62
class plin.enums.PLINMessageType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN message type.

AUTOBAUD_OK = 4
AUTOBAUD_TO = 3
FRAME = 0
OVERRUN = 5
SLEEP = 1
WAKEUP = 2
class plin.enums.PLINMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN mode.

MASTER = 2
NONE = 0
SLAVE = 1
class plin.enums.PLINScheduleIndex(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

LIN schedule index range.

MAX = 7
MIN = 0
class plin.enums.PLINUSBResponseRemapType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

GET = 0
SET = 1
class plin.enums.PLINUSBSlotNumber(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Slot number range.

MAX = 8
MIN = 1
class plin.enums.PLINUSBSlotType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

EVENT = 1
MASTER_REQ = 3
SLAVE_RSP = 4
SPORADIC = 2
UNCOND = 0

plin.plin module

Module contents