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

Common LIN driver data structure. More...

#include <lin.h>

Data Fields

struct lin_config config
 Current LIN controller configuration.
bool started
 True if LIN controller is started, false otherwise.
lin_event_callback_t callback
 LIN event callback function pointer or NULL.
void * callback_data
 User data pointer passed to the callback function.

Detailed Description

Common LIN driver data structure.

This structure is used to hold LIN driver state and is expected to be the first element in the object pointed to by the data field in the device structure.

Field Documentation

◆ callback

lin_event_callback_t lin_driver_data::callback

LIN event callback function pointer or NULL.

◆ callback_data

void* lin_driver_data::callback_data

User data pointer passed to the callback function.

◆ config

struct lin_config lin_driver_data::config

Current LIN controller configuration.

◆ started

bool lin_driver_data::started

True if LIN controller is started, false otherwise.


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