Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lin_event Struct Reference

LIN event structure. More...

#include <zephyr/drivers/lin.h>

Data Fields

enum lin_event_type type
 LIN event type.
int status
 LIN status code, if any.
union { 
   struct { 
      uint8_t   pid 
 LIN Protected ID. More...
   }   header
 LIN header event context, if any. More...
   struct { 
      uint8_t   pid 
 LIN Protected ID. More...
      uint8_t   bytes_received 
 Number of data bytes received. More...
      uint8_t   checksum 
 Received checksum. More...
   }   data
 LIN data event context, if any. More...
   lin_error_flags_t   error_flags 
 LIN error event flags, if any. More...
}; 
 Event-specific context information.

Detailed Description

LIN event structure.

This structure is used to pass LIN events to the application.

Field Documentation

◆ [union]

union { ... } lin_event

Event-specific context information.

◆ bytes_received

uint8_t lin_event::bytes_received

Number of data bytes received.

◆ checksum

uint8_t lin_event::checksum

Received checksum.

◆ [struct]

struct { ... } lin_event::data

LIN data event context, if any.

◆ error_flags

lin_error_flags_t lin_event::error_flags

LIN error event flags, if any.

◆ [struct]

struct { ... } lin_event::header

LIN header event context, if any.

◆ pid

uint8_t lin_event::pid

LIN Protected ID.

◆ status

int lin_event::status

LIN status code, if any.

◆ type

enum lin_event_type lin_event::type

LIN event type.


The documentation for this struct was generated from the following file: