S32 SDK
lin_state_t Struct Reference

Runtime state of the LIN driver. More...

#include <lin_driver.h>

Data Fields

const uint8_t * txBuff
 
uint8_t * rxBuff
 
uint8_t cntByte
 
volatile uint8_t txSize
 
volatile uint8_t rxSize
 
uint8_t checkSum
 
volatile bool isTxBusy
 
volatile bool isRxBusy
 
volatile bool isBusBusy
 
volatile bool isTxBlocking
 
volatile bool isRxBlocking
 
lin_callback_t Callback
 
uint8_t currentId
 
uint8_t currentPid
 
volatile lin_event_id_t currentEventId
 
volatile lin_node_state_t currentNodeState
 
volatile uint32_t timeoutCounter
 
volatile bool timeoutCounterFlag
 
volatile bool baudrateEvalEnable
 
volatile uint8_t fallingEdgeInterruptCount
 
uint32_t linSourceClockFreq
 
semaphore_t txCompleted
 
semaphore_t rxCompleted
 

Detailed Description

Runtime state of the LIN driver.

Note that the caller provides memory for the driver state structures during initialization because the driver does not statically allocate memory. Implements : lin_state_t_Class

Definition at line 124 of file lin_driver.h.

Field Documentation

volatile bool baudrateEvalEnable

Baudrate Evaluation Process Enable

Definition at line 143 of file lin_driver.h.

lin_callback_t Callback

Callback function to invoke after receiving a byte or transmitting a byte.

Definition at line 136 of file lin_driver.h.

uint8_t checkSum

Checksum byte.

Definition at line 130 of file lin_driver.h.

uint8_t cntByte

To count number of bytes already transmitted or received.

Definition at line 127 of file lin_driver.h.

volatile lin_event_id_t currentEventId

Current ID Event

Definition at line 139 of file lin_driver.h.

uint8_t currentId

Current ID

Definition at line 137 of file lin_driver.h.

volatile lin_node_state_t currentNodeState

Current Node state

Definition at line 140 of file lin_driver.h.

uint8_t currentPid

Current PID

Definition at line 138 of file lin_driver.h.

volatile uint8_t fallingEdgeInterruptCount

Falling Edge count of a sync byte

Definition at line 144 of file lin_driver.h.

volatile bool isBusBusy

True if there are data, frame headers being transferred on bus

Definition at line 133 of file lin_driver.h.

volatile bool isRxBlocking

True if receive is blocking transaction.

Definition at line 135 of file lin_driver.h.

volatile bool isRxBusy

True if the LIN interface is receiving frame data.

Definition at line 132 of file lin_driver.h.

volatile bool isTxBlocking

True if transmit is blocking transaction.

Definition at line 134 of file lin_driver.h.

volatile bool isTxBusy

True if the LIN interface is transmitting frame data.

Definition at line 131 of file lin_driver.h.

uint32_t linSourceClockFreq

Frequency of the source clock for LIN

Definition at line 145 of file lin_driver.h.

uint8_t* rxBuff

The buffer of received data.

Definition at line 126 of file lin_driver.h.

semaphore_t rxCompleted

Used to wait for LIN interface ISR to complete reception

Definition at line 147 of file lin_driver.h.

volatile uint8_t rxSize

The remaining number of bytes to be received.

Definition at line 129 of file lin_driver.h.

volatile uint32_t timeoutCounter

Value of the timeout counter

Definition at line 141 of file lin_driver.h.

volatile bool timeoutCounterFlag

Timeout counter flag

Definition at line 142 of file lin_driver.h.

const uint8_t* txBuff

The buffer of data being sent.

Definition at line 125 of file lin_driver.h.

semaphore_t txCompleted

Used to wait for LIN interface ISR to complete transmission.

Definition at line 146 of file lin_driver.h.

volatile uint8_t txSize

The remaining number of bytes to be transmitted.

Definition at line 128 of file lin_driver.h.


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