2.124.35 USARTx_LIN_DataLenModeSet Function

C

/* x = USART instance number */

/* Blocking and Ring buffer mode */
void USARTx_LIN_DataLenModeSet(USART_LIN_DATA_LEN dataLenMode)

Summary

This API allows the application to set Data Length Mode.

Description

This API allows the application to set Data Length Mode.

Data Length Mode indicates if the response data length is defined by DLC (Data Length Control bits) or by bits 5 and 6 of the identifier

Precondition

USARTx_Initialize must have been called for the associated USART instance.

Parameters

ParamDescription
dataLenModeTo set the data length mode defined by Enum USART_LIN_DATA_LEN

Returns

None

Example

                
/* LIN data length mode is set to DLC. In this mode user have the flexibility to set the response data length using "USART0_LIN_ResponseDataLenSet()" - API*/
USART0_LIN_DataLenModeSet(USART_LIN_DATA_LEN_DLC);

Remarks

None