XilinxProcessorIPLib/drivers/tmr_inject/examples/xtmr_inject_selftest_example.c
int TMR_InjectSelfTestExample(u16 DeviceId)
{
	int Status;

	/*
	 * Initialize the TMR_Inject driver so that it is ready to use.
	 */
	Status = XTMR_Inject_Initialize(&TMR_Inject, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	/*
	 * Perform a self-test to ensure that the hardware was built correctly.
	 */
	Status = XTMR_Inject_SelfTest(&TMR_Inject);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function does a minimal test on the TMR_Inject device and driver as a
* design example. The purpose of this function is to illustrate
* how to use the XTMR_Inject component.
*
*
* @param	DeviceId is the XPAR_<tmr_inject_instance>_DEVICE_ID value from
*		xparameters.h.
*
* @return	XST_SUCCESS if successful, otherwise XST_FAILURE.
*
* @note		None.
*
****************************************************************************/
This function does a minimal test on the TMR_Inject device and driver as a
design example. The purpose of this function is to illustrate
how to use the XTMR_Inject component.
This function does a minimal test on the TMR_Inject device and driver as a design example . The purpose of this function is to illustrate how to use the XTMR_Inject component .
int TMR_InjectSelfTestExample(u16 DeviceId)
{
	int Status;
	Status = XTMR_Inject_Initialize(&TMR_Inject, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XTMR_Inject_SelfTest(&TMR_Inject);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int TMR_InjectSelfTestExample ( u16 DeviceId ) { int Status ; Status = XTMR_Inject_Initialize ( & TMR_Inject , DeviceId ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XTMR_Inject_SelfTest ( & TMR_Inject ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function does a minimal test on the TMR_Inject device and driver as a
design example.
This function does a minimal test on the TMR_Inject device and driver as a design example .
/*
	 * Initialize the TMR_Inject driver so that it is ready to use.
	 */ /*
	 * Perform a self-test to ensure that the hardware was built correctly.
	 */