Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lin_msg Struct Reference

LIN message structure. More...

#include <lin.h>

Data Fields

uint8_t id
 LIN message ID.
uint8_t flags
 Flags for the message.
uint8_t data_len
 Data length for the message.
union { 
   uint8_t   data [LIN_MAX_DLEN] 
 Payload data accessed by bytes. More...
   uint32_t   data_32 [DIV_ROUND_UP(LIN_MAX_DLEN,
       sizeof(uint32_t))] 
 Payload data accessed by 32-bit words. More...
}; 
 Message payload data.
enum lin_checksum_type checksum_type
 Checksum type for the message.

Detailed Description

LIN message structure.

Field Documentation

◆ [union]

union { ... } lin_msg

Message payload data.

◆ checksum_type

enum lin_checksum_type lin_msg::checksum_type

Checksum type for the message.

◆ data

uint8_t lin_msg::data[LIN_MAX_DLEN]

Payload data accessed by bytes.

◆ data_32

uint32_t lin_msg::data_32[DIV_ROUND_UP(LIN_MAX_DLEN, sizeof(uint32_t))]

Payload data accessed by 32-bit words.

◆ data_len

uint8_t lin_msg::data_len

Data length for the message.

◆ flags

uint8_t lin_msg::flags

Flags for the message.

◆ id

uint8_t lin_msg::id

LIN message ID.


The documentation for this struct was generated from the following file:
  • include/zephyr/drivers/lin.h