XilinxProcessorIPLib/drivers/v_sditxss/examples/xuhdsdi_pixco_example/xsdi_menu.c
static XSdi_MenuType XSdi_MainMenu(XSdi_Menu *InstancePtr, u8 Input)
{
	/* Variables */
	XSdi_MenuType Menu;
	/* Default */
	Menu = XSDI_MAIN_MENU;

	switch (Input) {
		case ('i') :
		case ('I') :
			/* Info */
			Info();
			Menu = XSDI_MAIN_MENU;
			break;
		case ('z') :
		case ('Z') :
			/* GT & SDI TX/RX log */
			XV_SdiTxSs_LogDisplay(&SdiTxSs);
			XV_SdiRxSs_LogDisplay(&SdiRxSs);
			Menu = XSDI_MAIN_MENU;
			break;
		case ('d') :
		case ('D') :
			/* Debug */
			DebugInfo();
			Menu = XSDI_MAIN_MENU;
			break;
		default :
			XSdi_DisplayMainMenu();
			Menu = XSDI_MAIN_MENU;
			break;
	}
	return Menu;
}
/*****************************************************************************/
/**
 *
 * This function implements the SDI main menu state.
 *
 * @param	input is the value used for the next menu state decoder.
 *
 * @return	The next menu state.
 *
 ******************************************************************************/
This function implements the SDI main menu state.
@param       input is the value used for the next menu state decoder.

@return      The next menu state.
This function implements the SDI main menu state . @param input is the value used for the next menu state decoder . @return The next menu state .
static XSdi_MenuType XSdi_MainMenu(XSdi_Menu *InstancePtr, u8 Input)
{
	XSdi_MenuType Menu;
	Menu = XSDI_MAIN_MENU;
	switch (Input) {
		case ('i') :
		case ('I') :
			Info();
			Menu = XSDI_MAIN_MENU;
			break;
		case ('z') :
		case ('Z') :
			XV_SdiTxSs_LogDisplay(&SdiTxSs);
			XV_SdiRxSs_LogDisplay(&SdiRxSs);
			Menu = XSDI_MAIN_MENU;
			break;
		case ('d') :
		case ('D') :
			DebugInfo();
			Menu = XSDI_MAIN_MENU;
			break;
		default :
			XSdi_DisplayMainMenu();
			Menu = XSDI_MAIN_MENU;
			break;
	}
	return Menu;
}
static XSdi_MenuType XSdi_MainMenu ( XSdi_Menu * InstancePtr , u8 Input ) { XSdi_MenuType Menu ; Menu = XSDI_MAIN_MENU ; switch ( Input ) { case ( ' ' ) : case ( ' ' ) : Info ( ) ; Menu = XSDI_MAIN_MENU ; break ; case ( ' ' ) : case ( ' ' ) : XV_SdiTxSs_LogDisplay ( & SdiTxSs ) ; XV_SdiRxSs_LogDisplay ( & SdiRxSs ) ; Menu = XSDI_MAIN_MENU ; break ; case ( ' ' ) : case ( ' ' ) : DebugInfo ( ) ; Menu = XSDI_MAIN_MENU ; break ; default : XSdi_DisplayMainMenu ( ) ; Menu = XSDI_MAIN_MENU ; break ; } return Menu ; }
This function implements the SDI main menu state.
This function implements the SDI main menu state .
/* Variables */ /* Default */ /* Info */ /* GT & SDI TX/RX log */ /* Debug */