XilinxProcessorIPLib/drivers/v_sditxss/examples/xuhdsdi_pixco_example/xsdi_menu.c
void XSdi_MenuProcess(XSdi_Menu *InstancePtr)
{
	u8 Data;

	/* Verify argument. */
	Xil_AssertVoid(InstancePtr != NULL);

	/* Check if the uart has any data */
	if (XUartPs_IsReceiveData(InstancePtr->UartBaseAddress)) {

	/* Read data from uart */
	Data = XUartPs_RecvByte(InstancePtr->UartBaseAddress);

	/* Main Menu */
	InstancePtr->CurrentMenu = XSdi_MenuTable[InstancePtr->CurrentMenu]
				   (InstancePtr, Data);
	InstancePtr->Value = 0;
	}
}
/*****************************************************************************/
/**
 *
 * This function is called to trigger the SDI menu statemachine.
 *
 * @param	InstancePtr is a pointer to the XSdi_Menu instance.
 *
 * @return	None
 *
 ******************************************************************************/
This function is called to trigger the SDI menu statemachine.
@param       InstancePtr is a pointer to the XSdi_Menu instance.

@return      None
This function is called to trigger the SDI menu statemachine . @param InstancePtr is a pointer to the XSdi_Menu instance . @return None
void XSdi_MenuProcess(XSdi_Menu *InstancePtr)
{
	u8 Data;
	Xil_AssertVoid(InstancePtr != NULL);
	if (XUartPs_IsReceiveData(InstancePtr->UartBaseAddress)) {
	Data = XUartPs_RecvByte(InstancePtr->UartBaseAddress);
	InstancePtr->CurrentMenu = XSdi_MenuTable[InstancePtr->CurrentMenu]
				   (InstancePtr, Data);
	InstancePtr->Value = 0;
	}
}
void XSdi_MenuProcess ( XSdi_Menu * InstancePtr ) { u8 Data ; Xil_AssertVoid ( InstancePtr != NULL ) ; if ( XUartPs_IsReceiveData ( InstancePtr -> UartBaseAddress ) ) { Data = XUartPs_RecvByte ( InstancePtr -> UartBaseAddress ) ; InstancePtr -> CurrentMenu = XSdi_MenuTable [ InstancePtr -> CurrentMenu ] ( InstancePtr , Data ) ; InstancePtr -> Value = 0 ; } }
This function is called to trigger the SDI menu statemachine.
This function is called to trigger the SDI menu statemachine .
/* Verify argument. */ /* Check if the uart has any data */ /* Read data from uart */ /* Main Menu */