XilinxProcessorIPLib/drivers/can/examples/xcan_intr_example.c
static void ErrorHandler(void *CallBackRef, u32 ErrorMask)
{

	if(ErrorMask & XCAN_ESR_ACKER_MASK) {
		/*
		 * ACK Error handling code should be put here.
		 */
	}

	if(ErrorMask & XCAN_ESR_BERR_MASK) {
		/*
		 * Bit Error handling code should be put here.
		 */
	}

	if(ErrorMask & XCAN_ESR_STER_MASK) {
		/*
		 * Stuff Error handling code should be put here.
		 */
	}

	if(ErrorMask & XCAN_ESR_FMER_MASK) {
		/*
		 * Form Error handling code should be put here.
		 */
	}

	if(ErrorMask & XCAN_ESR_CRCER_MASK) {
		/*
		 * CRC Error handling code should be put here.
		 */
	}

	/*
	 * Set the shared variables.
	 */
	LoopbackError = TRUE;
	RecvDone = TRUE;
	SendDone = TRUE;
}
/*****************************************************************************/
/**
*
* Callback function (called from interrupt handler) to handle error interrupt.
* Error code read from Error Status register is passed into this function
*
* @param	CallBackRef is the callback reference passed from the interrupt
*		handler, which in our case is a pointer to the driver instance.
* @param	ErrorMask is a bit mask indicating the cause of the error. Its
*		value equals 'OR'ing one or more XCAN_ESR_* defined in xcan_l.h
*
* @return	None.
*
* @note		This function is called by the driver within interrupt context.
*
******************************************************************************/
Callback function (called from interrupt handler) to handle error interrupt.
Error code read from Error Status register is passed into this function
Callback function ( called from interrupt handler ) to handle error interrupt . Error code read from Error Status register is passed into this function
static void ErrorHandler(void *CallBackRef, u32 ErrorMask)
{
	if(ErrorMask & XCAN_ESR_ACKER_MASK) {
	}
	if(ErrorMask & XCAN_ESR_BERR_MASK) {
	}
	if(ErrorMask & XCAN_ESR_STER_MASK) {
	}
	if(ErrorMask & XCAN_ESR_FMER_MASK) {
	}
	if(ErrorMask & XCAN_ESR_CRCER_MASK) {
	}
	LoopbackError = TRUE;
	RecvDone = TRUE;
	SendDone = TRUE;
}
static void ErrorHandler ( void * CallBackRef , u32 ErrorMask ) { if ( ErrorMask & XCAN_ESR_ACKER_MASK ) { } if ( ErrorMask & XCAN_ESR_BERR_MASK ) { } if ( ErrorMask & XCAN_ESR_STER_MASK ) { } if ( ErrorMask & XCAN_ESR_FMER_MASK ) { } if ( ErrorMask & XCAN_ESR_CRCER_MASK ) { } LoopbackError = TRUE ; RecvDone = TRUE ; SendDone = TRUE ; }
Callback function (called from interrupt handler) to handle error interrupt.
Callback function ( called from interrupt handler ) to handle error interrupt .
/*
		 * ACK Error handling code should be put here.
		 */ /*
		 * Bit Error handling code should be put here.
		 */ /*
		 * Stuff Error handling code should be put here.
		 */ /*
		 * Form Error handling code should be put here.
		 */ /*
		 * CRC Error handling code should be put here.
		 */ /*
	 * Set the shared variables.
	 */