---
name: "Vector_BLF_LinSleepModeEvent"
section: "3"
platform: "linux"
package: "vector-blf"
version: "2.4.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Vector_BLF_LinSleepModeEvent"
---

# Vector\_BLF\_LinSleepModeEvent(3)

LIN\_SLEEP.

## NAME

Vector::BLF::LinSleepModeEvent - LIN\_SLEEP.

## SYNOPSIS

\#include \<LinSleepModeEvent.h\>

Inherits **Vector::BLF::ObjectHeader**.

### Public Types

enum **Flags** : uint8\_t { **WasAwake** = 0x01, **IsAwake** = 0x02, **External** = 0x04 }\

Public Types inherited from **Vector::BLF::ObjectHeader** enum **ObjectFlags** : uint32\_t { **TimeTenMics** = 0x00000001, **TimeOneNans** = 0x00000002 }\

### Public Member Functions

void **read** (**AbstractFile** &is) override\
 void **write** (**AbstractFile** &os) override\
 uint32\_t **calculateObjectSize** () const override\

Public Member Functions inherited from **Vector::BLF::ObjectHeader** **ObjectHeader** (const ObjectType **objectType**, const uint16\_t **objectVersion**=0)\
 void **read** (**AbstractFile** &is) override\
 void **write** (**AbstractFile** &os) override\
 uint16\_t **calculateHeaderSize** () const override\
 uint32\_t **calculateObjectSize** () const override\

Public Member Functions inherited from **Vector::BLF::ObjectHeaderBase** **ObjectHeaderBase** (const uint16\_t **headerVersion**, const ObjectType **objectType**)\
 **ObjectHeaderBase** (const ObjectHeaderBase &)=default\
 ObjectHeaderBase & **operator=** (const ObjectHeaderBase &)=default\
 **ObjectHeaderBase** (ObjectHeaderBase &&)=default\
 ObjectHeaderBase & **operator=** (ObjectHeaderBase &&)=default\

### Public Attributes

uint16\_t **channel** {}\
 application channel  uint8\_t **reason** {}\
 uint8\_t **flags** {}\
 uint32\_t **reservedLinSleepModeEvent** {}\

Public Attributes inherited from **Vector::BLF::ObjectHeader** uint32\_t **objectFlags** {**ObjectFlags::TimeOneNans**}\
 object flags  uint16\_t **clientIndex** {}\
 client index of send node  uint16\_t **objectVersion** {0}\
 object specific version  uint64\_t **objectTimeStamp** {}\
 object timestamp

Public Attributes inherited from **Vector::BLF::ObjectHeaderBase** uint32\_t **signature** {ObjectSignature}\
 signature (ObjectSignature)  uint16\_t **headerSize** {}\
 sizeof object header  uint16\_t **headerVersion** {}\
 header version (1)  uint32\_t **objectSize** {}\
 object size  ObjectType **objectType** {ObjectType::UNKNOWN}\
 object type

## Detailed Description

LIN\_SLEEP.

This info event occurs at the start of a measurement in order to report the initial state of the LIN hardware and every time the mode (awake/asleep) of LIN hardware changes.

## Member Enumeration Documentation

### enum Vector::BLF::LinSleepModeEvent::Flags : uint8\_t

Bit values for flags

**Enumerator**

- ***WasAwake***

  LIN "was awake".

- ***IsAwake***

  LIN "is awake".

- ***External***

  LIN "external".

## Member Function Documentation

### uint32\_t Vector::BLF::LinSleepModeEvent::calculateObjectSize () const \[override\], \[virtual\]

Calculates the objectSize

**Returns**

object size

Reimplemented from **Vector::BLF::ObjectHeaderBase**.

### void Vector::BLF::LinSleepModeEvent::read (AbstractFile & is) \[override\], \[virtual\]

Read the data of this object

**Parameters**

*is* input stream

Reimplemented from **Vector::BLF::ObjectHeaderBase**.

### void Vector::BLF::LinSleepModeEvent::write (AbstractFile & os) \[override\], \[virtual\]

Write the data of this object

**Parameters**

*os* output stream

Reimplemented from **Vector::BLF::ObjectHeaderBase**.

## Member Data Documentation

### uint16\_t Vector::BLF::LinSleepModeEvent::channel {}

application channel Channel number where the event notified

### uint8\_t Vector::BLF::LinSleepModeEvent::flags {}

Bit mask with bit values as following:

Bit 0 (LSB): Indicates the state of the LIN hardware before this event occurred:

- •

  1: Awake

- •

  0: Asleep

Bit 1: Indicates the current state of the LIN hardware:

- •

  1: Awake

- •

  0: Asleep

Bit 2: Indicates whether this event caused by external or internal event:

- •

  1: External event

- •

  0: Internal event

### uint8\_t Vector::BLF::LinSleepModeEvent::reason {}

This value indicates the reason for an event. Following values are possible:

- •

  0: Start state

Transition to Sleep mode

- •

  1: Go-to-Sleep frame

- •

  2: Bus Idle Timeout

- •

  3: Silent SleepMode command (for shortening the BusIdle Timeout)

Leaving Sleep mode:

- •

  9: External Wakeup signal

- •

  10: Internal Wakeup signal

- •

  11: Bus traffic (can only occur if the LIN hardware does not have a Master function)

LIN hardware does not go into Sleep mode in spite of request to do so:

- •

  18: Bus traffic (can only occur if the LIN hardware does not have a Master function)

### uint32\_t Vector::BLF::LinSleepModeEvent::reservedLinSleepModeEvent {}

reserved

## Author

Generated automatically by Doxygen for Vector BLF from the source code.
