LIN Middleware
Transport Layer Status

General Description

Macros

#define LD_IN_PROGRESS   (0x01U)
 Reception or transmission not yet completed.
 
#define LD_COMPLETED   (0x02U)
 Reception or transmission completed successfully. More...
 
#define LD_FAILED   (0x03U)
 Reception or transmission ended in an error. More...
 
#define LD_N_AS_TIMEOUT   (0x04U)
 Transmission failed because of a N_As timeout.
 
#define LD_N_CR_TIMEOUT   (0x05U)
 Reception failed because of a N_Cr timeout.
 
#define LD_WRONG_SN   (0x06U)
 Reception failed because of an unexpected sequence number.
 
#define LD_QUEUE_EMPTY   (0x07U)
 The transmit queue is empty. More...
 
#define LD_QUEUE_AVAILABLE   (0x08U)
 The transmit queue contains entries, but is not full.
 
#define LD_QUEUE_FULL   (0x09U)
 The transmit queue is full and cannot accept further frames.
 
#define LD_TRANSMIT_ERROR   (0x0AU)
 LIN protocol errors occurred during a transfer; initialize and redo the transfer. More...
 
#define LD_NO_DATA   (0x0BU)
 The receive queue is empty. More...
 
#define LD_DATA_AVAILABLE   (0x0CU)
 The receive queue contains data that can be read.
 
#define LD_RECEIVE_ERROR   (0x0DU)
 LIN protocol errors occurred during a transfer; initialize and redo the transfer. More...
 

Macro Definition Documentation

◆ LD_COMPLETED

#define LD_COMPLETED   (0x02U)

Reception or transmission completed successfully.

This value is also returned after initialization of Transport Layer.

◆ LD_FAILED

#define LD_FAILED   (0x03U)

Reception or transmission ended in an error.

The data was only partially sent or received (should not be trusted). The transport layer is reinitialized before processing further messages. To find out why reception or transmission failed, check the status management function ld_rx_status() or ld_tx_status().

◆ LD_QUEUE_EMPTY

#define LD_QUEUE_EMPTY   (0x07U)

The transmit queue is empty.

In case of previous calls to ld_put_raw, all frames in the queue were transmitted.

◆ LD_TRANSMIT_ERROR

#define LD_TRANSMIT_ERROR   (0x0AU)

LIN protocol errors occurred during a transfer; initialize and redo the transfer.

◆ LD_NO_DATA

#define LD_NO_DATA   (0x0BU)

The receive queue is empty.

◆ LD_RECEIVE_ERROR

#define LD_RECEIVE_ERROR   (0x0DU)

LIN protocol errors occurred during a transfer; initialize and redo the transfer.