2.109.10 SENTx_ReceiveErrorGet Function

C

/* x refers to the instance number */

SENT_ERROR_CODE SENTx_ReceiveErrorGet(void)	

Summary

Returns the type of reception error when the SENT Peripheral acts as a receiver.

Description

This function returns the most recent error code that was recorded during reception.

Precondition

Ensure that the SENT instance is properly initialized and configured before calling this function..

Parameters

None.

Returns

Returns the SENTx module reception error SENT_ERROR_CODE Enum

Example

SENT_ERROR_CODE errorCode = SENT2_ReceiveErrorGet(); 
  if (errorCode != NO_ERROR) {
  /*Handle the error accordingly*/
}

Remarks

None.