2.124.40 USARTx_LIN_ParityEnable Function

C

/* x = USART instance number */

/* Blocking and Ring buffer mode */
void USARTx_LIN_ParityEnable(bool parityEnable)

Summary

This API allows the application to Enable/Disable LIN Identifier parity mode.

Description

This API allows the application to Enable/Disable LIN Identifier parity mode.

If Parity mode is Enabled:

– During header transmission, the parity bits are computed and sent

– During header reception, the parity bits of the identifier are checked.

Precondition

USARTx_Initialize must have been called for the associated USART instance.

Parameters

ParamDescription
parityEnableEnable/Disable LIN Identifier parity mode

true - checksum Enabled

false - checksum Disabled

Returns

None

Example

/* LIN identifier parity is disabled*/
USART0_LIN_ParityEnable(false);

Remarks

None