2.124.34 USARTx_LIN_ChecksumTypeSet Function

C

/* x = USART instance number */

/* Blocking and Ring buffer mode */
void USARTx_LIN_ChecksumTypeSet(USART_LIN_CHECKSUM_TYPE checksumType)

Summary

This API allows the application to set the type of checksum to be used during data transfer.

Description

This API allows the application to set the type of checksum to be used during data transfer.

Precondition

USARTx_Initialize must have been called for the associated USART instance.

Checksum must be enabled using USARTx_LIN_ChecksumEnable API

Parameters

ParamDescription
checksumTypeType of checksum to be used which is defined by enum USART_LIN_CHECKSUM_TYPE

Returns

None

Example

                                
/* LIN checksum type is set to 2.0 Enhanced checksum mode. this setting is not having any impact if checksum feature is disabled */
USART0_LIN_ChecksumTypeSet(USART_LIN_2_0_ENHANCHED_CHECKSUM);

Remarks

None