Esempio n. 1
0
/* -----------------------------------------------------------------------
	   FUNCTION  : C_ite_dbg_focuswindowsystem_cmd
	   PURPOSE   :
------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focuswindowsystem_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fwtest <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_AFWindowSystemTest();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 2
0
/* -----------------------------------------------------------------------
	   FUNCTION  : C_ite_dbg_focusbug107051_cmd
	   PURPOSE   :
------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusbug107051_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fzbug <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            ITE_NMF_FocusStatsPrepare();
            FocusControl_BugTest_107051(
            (t_uint32) (pFocusStatsBuffer->ISPBufferBaseAddress),
            (t_uint32) (pFocusStatsBuffer->logAddress));
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 3
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusframeidtest_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusframeidtest_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fidtest\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            ITE_NMF_FocusStatsPrepare();
            AFStats_FrameID_Test(
            (t_uint32) (pFocusStatsBuffer->ISPBufferBaseAddress),
            (t_uint32) (pFocusStatsBuffer->logAddress));
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 4
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusmanueltest_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusmanueltest_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fmantest <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            FLADriverManualFocusTest();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 5
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focuszonesetupinper_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focuszonesetupinper_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fzsetper <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_HostZoneSetup();
            LOS_Log("CALLING STATS READY TEST...\n\n");

            //		  ITE_NMF_FocusStatsPrepare();
            //AFSTatsReadyTest(ap_args[1],(t_uint32)(pFocusStatsBuffer->ISPBufferBaseAddress),(t_uint32)(pFocusStatsBuffer->logAddress));
            //LOS_Log("TEST FINISHED: Result Depends on the AFStats Ready Test...\n\n");
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 6
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusprintmemstats_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusprintmemstats_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fpmemstat <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            ITE_NMF_FocusStatsPrepare();
            FocusControl_PrintBytesExtMemory(
            (t_uint32) (pFocusStatsBuffer->ISPBufferBaseAddress),
            (t_uint32) (pFocusStatsBuffer->logAddress));
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 7
0
/* -----------------------------------------------------------------------
	   FUNCTION  : C_ite_dbg_focusconfigread_cmd
	   PURPOSE   :
------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusconfigread_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fzcread <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_ZoneAbsDimensions();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 8
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focushostzonewithzoom_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focushostzonewithzoom_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fhzwz <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_HostZoneWithZoom();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 9
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusmovetotargetpos_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusmovetotargetpos_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 2)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: ftotargetpos <step value>\n");
        }
    }
    else
    {
        if (a_nb_args == 2)
        {
            FLADriverMoveToTargetPos(ITE_ConvToInt16(ap_args[1]));
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 10
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusmovetohormacro_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusmovetohormacro_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: ftohmacro <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            FLADriverMoveToHorMacro();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 11
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusshifttohostfocussystem_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusshifttohostfocussystem_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fhfs <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_HostFocusSystem();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 12
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focuszoombug_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focuszoombug_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fzbug <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            AFStats_ZoomBugTest();
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
Esempio n. 13
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusstatsandcmd_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusstatsandcmd_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fsandc <>\n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            ITE_NMF_FocusStatsPrepare();
            FocusControl_FLADMove_and_Stats_Gather(
            (t_uint32) (pFocusStatsBuffer->ISPBufferBaseAddress),
            (t_uint32) (pFocusStatsBuffer->logAddress));
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
        }
    }


    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_gridironloadhw_cmd
   PURPOSE  : 
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_dbg_gridironloadhw_cmd(int a_nb_args, char ** ap_args)
{if (0== strcmp(ap_args[1],"help")) {
	CLI_disp_error("syntax: gridironloadhw <FILENAME>\n");}
 else {
   if (a_nb_args == 2)
      {
          ITE_NMF_gridironload(ap_args[1],1);
      }
   else
      {CLI_disp_error("Not correct command arguments\n"); }
   }
   return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_gammaloadnips_cmd
   PURPOSE  : 
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_dbg_gammaloadnips_cmd(int a_nb_args, char ** ap_args)
{if (0== strcmp(ap_args[1],"help")) {
	CLI_disp_error("syntax: gammaloadnips <FILENAME> <LR/HR/>\n");}
 else {
   if (a_nb_args == 3)
      {
          ITE_NMF_gammaloadnips(ap_args[1],ap_args[2]);
      }
   else
      {CLI_disp_error("Not correct command arguments\n"); }
   }
   return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_PrintAdsoc_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_VerifyAdsoc_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    sprintf(mess, "VerityAdsoc_%d", ( int ) g_u32_counter_adsoc_test);
    g_u32_counter_adsoc_test++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/Adsoc_tests", "Test PrintAdsocStatus");

    sprintf(mess, "Verifying Adsoc");
    mmte_testNext(mess);

    LOS_Log("**********************************************************************\n");
    LOS_Log("******************* PRINT Adsoc peaking STATUS PAGE ********************\n");
    LOS_Log("**********************************************************************\n");
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("Syntax: PrintAdsocRP , Tests Adsoc interface provided by ISP FW \n");
        }


        if (0 == strcmp(ap_args[1], "0"))
        {
            Verify_Adsoc_Peaking(0);
            LOS_Log("Adsoc peaking Status Page Printing done for pipe 0\n");
        }
        else if (0 == strcmp(ap_args[1], "1"))
        {
            Verify_Adsoc_Peaking(1);
            LOS_Log("Adsoc peaking Status Page Printing done for pipe 1\n");
        }
    }
    else
    {
        CLI_disp_error("Syntax: PrintAdsoc , Tests Adsoc peaking interface provided by ISP FW \n");
    }


    LOS_Log("**********************************************************************\n");
    LOS_Log("****************** PRINT Adsoc peaking STATUS PAGE COMPLETE *******************\n");
    LOS_Log("**********************************************************************\n");
    MMTE_TEST_PASSED();
    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_Flash_enable_pre_streaming_cmd
   PURPOSE  : enable flash before streaming
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_dbg_Flash_enable_pre_streaming_cmd(int a_nb_args, char ** ap_args)
{
    
    if (ap_args[1]==NULL) ap_args[1]=""; //For Linux, strcmp doesn't support NULL parameter
    
    if (0== strcmp(ap_args[1],"help")) {
        CLI_disp_error("syntax: Flash_enable\n");}
    else {
        if (a_nb_args == 2)
        {Flash_enable_pre_streaming(ap_args[1]);}
        else
        {CLI_disp_error("Not correct command arguments\n"); }
    }
    return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_gridironcontrolpe_cmd
   PURPOSE  : 
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_dbg_gridironcontrolpe_cmd(int a_nb_args, char ** ap_args)
{if (0== strcmp(ap_args[1],"help")) {
	CLI_disp_error("syntax: gridironcontrolpe <enable/disable>\n");}
 else {
   if (a_nb_args == 2)
      {
        if (0== strcmp(ap_args[1],"enable"))
	      	ITE_NMF_gridironcontrolenablepe();
        if (0== strcmp(ap_args[1],"disable"))
		ITE_NMF_gridironcontroldisablepe();
      }
   else
      {CLI_disp_error("Not correct command arguments\n"); }
   }
   return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_PrintGridIron_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_PrintGridIron_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    MMTE_TEST_START("PrintGridIron", "/ite_nmf/test_results_nreg/GridIron_tests", "Test PrintGridIronStatus");

    sprintf(mess, "Testing for GridIron");
    mmte_testNext(mess);

    LOS_Log("********************* PRINT GRIDIRON STATUS PAGE **********************\n");
    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("Syntax: PrintGridIron , Tests GridIron interface provided by ISP FW \n");
        }
    }
    else
    {
        if (a_nb_args == 1)
        {
            Print_Gridiron_Parameters();
            LOS_Log("GridIron Status Page Printing done\n");
        }
    }


    LOS_Log("**************** PRINT GRIDIRON STATUS PAGE COMPLETE *****************\n");
    MMTE_TEST_PASSED();
    return (0);
}
Esempio n. 20
0
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_focusstatreadytest_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_focusstatreadytest_cmd(
int     a_nb_args,
char    **ap_args)
{
   Result_te result = Result_e_Success;
   char mess[256];
   MMTE_TEST_START("focusstatreadytest","/ite_nmf/test_results_nreg/focus_tests","Testing for focusstatreadytest");
   snprintf(mess,sizeof(mess),"focusstatreadytest");
   MMTE_TEST_NEXT("focusstatreadytest");

    if (a_nb_args > 2)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("syntax: fstattest <filename>\n");
            MMTE_TEST_SKIPPED();
        }
    }
    else
    {
        if (a_nb_args == 2)
        {
            ITE_NMF_FocusStatsPrepare();
            result = AFSTatsReadyTest(ap_args[1],
            (t_uint32) (pFocusStatsBuffer->ISPBufferBaseAddress),
            (t_uint32) (pFocusStatsBuffer->logAddress));

            if(result == Result_e_Success)
             {
               MMTE_TEST_PASSED();
             }
            else
             {
              MMTE_TEST_FAILED();
             }
        }
        else
        {
            CLI_disp_error("Not correct command arguments\n");
            MMTE_TEST_SKIPPED();
        }
    }


    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
FUNCTION : C_ite_dbg_TestFlashSupport_cmd
PURPOSE  :  Function to check the flash is supported or not
------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_TestFlashSupport_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];
    UNUSED(ap_args);
    MMTE_TEST_START("TestFlashSupport", "/ite_nmf/test_results_nreg/flash_tests", "Testing for Flash_SUPPORT");

    sprintf(mess, "Testing for Flash_SUPPORT");
    MMTE_TEST_NEXT(mess);
    if (a_nb_args != 1)
    {
        CLI_disp_error("TestFlashSupport: Checks whether Flash is suppported by the firmware \n");
        CLI_disp_error("TestFlashSupport[Command]: TestFlashSupport \n\n");
        CLI_disp_error("Not correct command arguments\n");
        MMTE_TEST_SKIPPED();

        return (CMD_ERR_ARGS);
    }


    if (Flag_e_FALSE == Is_Flash_Supported())
    {
        snprintf(mess, sizeof(mess), "Flash NOT Supported by the device! \n");
        MMTE_TEST_COMMENT(mess);


        MMTE_TEST_SKIPPED();
    }
    else
    {
        snprintf(mess, sizeof(mess), "Flash Supported by the device! \n");
        MMTE_TEST_COMMENT(mess);


        MMTE_TEST_PASSED();
    }


    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_gammacontrol_cmd
   PURPOSE  : 
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_dbg_gammacontrolpe_cmd(int a_nb_args, char ** ap_args)
{if (0== strcmp(ap_args[1],"help")) {
	CLI_disp_error("syntax: gammacontrol <enable/disable> <LR/HR/>\n");}
 else {
   if (a_nb_args == 3)
      {
        if (0== strcmp(ap_args[1],"enable") && 0== strcmp(ap_args[2],"LR"))
	      	ITE_NMF_gammacontrol1enablepe();
        if (0== strcmp(ap_args[1],"enable") && 0== strcmp(ap_args[2],"HR"))
	      	ITE_NMF_gammacontrol0enablepe();
        if (0== strcmp(ap_args[1],"disable")&& 0== strcmp(ap_args[2],"LR"))
		ITE_NMF_gammacontrol1disablepe();
	if (0== strcmp(ap_args[1],"disable")&& 0== strcmp(ap_args[2],"HR"))
		ITE_NMF_gammacontrol0disablepe();
      }
   else
      {CLI_disp_error("Not correct command arguments\n"); }
   }
   return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_FramerateTests_cmd
   PURPOSE  : Command for testing manual framerate
   ------------------------------------------------------------------------ */
CMD_COMPLETION C_ite_FramerateTests_cmd(int a_nb_args, char ** ap_args)
{

   if (a_nb_args == 3)
   {
      ITE_FramerateTest(ap_args[1], ap_args[2]);
   }
   else
   {
      CLI_disp_error("Not correct command arguments\n");
   }
   return CMD_COMPLETE;
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_datapath_LR_cmd
   PURPOSE  : Command for LR ouput pipe stimulation
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_datapath_LR_SENSOR_TUNNING_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args == 3)
    {
        ITE_LRDatapath_SENSOR_TUNNING(ap_args[1], ap_args[2]);
    }
    else
    {
        CLI_disp_error("Not correct command arguments\n");
    }


    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_FLASH_cmd
   PURPOSE  : Command for BMS ouput pipe stimulation
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_datapath_BMS_FLASH_cmd(
int     a_nb_args,
char    **ap_args)
{
    if (a_nb_args == 3)
    {
        ITE_FLASH_BMSDatapath(ap_args[1], ap_args[2]);
    }
    else
    {
        CLI_disp_error("Not correct command arguments\n");
    }


    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_ConfigureAdsoc_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_ConfigureAdsoc_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    sprintf(mess, "ConfigureAdsoc_%d", ( int ) g_u32_counter_adsoc_conf);
    g_u32_counter_adsoc_conf++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/Adsoc_tests", "Test ConfigureAdsoc");

    sprintf(mess, "Testing for Adsoc peaking");
    mmte_testNext(mess);

    LOS_Log("******************* ADSOC PEAKING CONFIGURATION ****************\n");

    if (a_nb_args > 1)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("Syntax: ConfigureAdsoc , Configures Adsoc interface provided by ISP FW \n");
        }


        if (0 == strcmp(ap_args[1], "0"))
        {
            Configure_Adsoc_Peaking(0);
            Enable_Adsoc(0, Flag_e_TRUE);
            LOS_Log("Adsoc peaking configuration done for pipe 0\n");
        }
        else if (0 == strcmp(ap_args[1], "1"))
        {
            Configure_Adsoc_Peaking(1);
            Enable_Adsoc(1, Flag_e_TRUE);
            LOS_Log("Adsoc peaking configuration done for pipe 1\n");
        }
    }


    LOS_Log("************************* ADSOC PEAKING TEST END**********************\n");
    MMTE_TEST_PASSED();
    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_VerityAdsocRP_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_VerityAdsocRP_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    sprintf(mess, "VerityAdsoc_Radial_Peaking_%d", ( int ) g_u32_counter_RP_test);
    g_u32_counter_RP_test++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/Adsoc_tests", "Test VerifyAdsocRP");

    sprintf(mess, "Verifying AdsocRP configuration");
    mmte_testNext(mess);

    LOS_Log("********************* Verify Adsoc radial peaking STATUS PAGE **********************\n");
    if (a_nb_args != 2)
    {
        CLI_disp_error("Syntax: VerifyAdsocRP <pipe_number> \n");
        return (CMD_ERR_ARGS);
    }


    if (0 == Verify_Adsoc_Radial_Peaking(atoi(ap_args[1])))
    {
        snprintf(mess, sizeof(mess), "Adsoc radial peaking test successfull for pipe <%d>\n", atoi(ap_args[1]));
        MMTE_TEST_COMMENT(mess);
        MMTE_TEST_PASSED();
        return (CMD_COMPLETE);
    }
    else
    {
        snprintf(mess, sizeof(mess), "Adsoc radial peaking test failed for pipe <%d>\n", atoi(ap_args[1]));
        MMTE_TEST_COMMENT(mess);
        MMTE_TEST_FAILED();
        return (CMD_COMPLETE);
    }


    LOS_Log("**************** Verify Adsoc radial peaking STATUS PAGE COMPLETE *****************\n");
    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_ConfigureAdsocRP_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_ConfigureAdsocRP_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    sprintf(mess, "ConfigureAdsoc_Radial_Peaking_%d", ( int ) g_u32_counter_RP_conf);
    g_u32_counter_RP_conf++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/AdsocRP_tests", "Test ConfigureAdsocRP");

    sprintf(mess, "Testing for Adsoc peaking");
    mmte_testNext(mess);

    LOS_Log("************* ADSOC RADIAL PEAKING CONFIGURATION TEST ****************\n");
    if (a_nb_args != 2)
    {
        CLI_disp_error("Syntax: ConfigureAdsocRP , Configures Adsoc interface provided by ISP FW \n");
        return (CMD_ERR_ARGS);
    }


    if (0 == Configure_Adsoc_Radial_Peaking(atoi(ap_args[1])))
    {
        Enable_Adsoc_Radial_Peaking(atoi(ap_args[1]), Flag_e_TRUE);
        LOS_Log("Adsoc radial peaking configuration done for pipe <%d>\n", atoi(ap_args[1]));
    }
    else
    {
        snprintf(mess, sizeof(mess), "Adsoc radial peaking configuration failed for pipe <%d>\n", atoi(ap_args[1]));
        MMTE_TEST_COMMENT(mess);
        MMTE_TEST_FAILED();
        return (CMD_COMPLETE);
    }


    LOS_Log("********************* ADSOC RADIAL PEAKING TEST END*******************\n");
    MMTE_TEST_PASSED();
    return (CMD_COMPLETE);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_TestGridIronLiveCast_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_TestGridIronLiveCast_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];
    UNUSED(ap_args);

    sprintf(mess, "TestGridIron_%d", ( int ) g_u32_counter_gridiron_test);
    g_u32_counter_gridiron_test++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/GridIron_tests", "TestGridIron");

    sprintf(mess, "Testing for GridIron");
    mmte_testNext(mess);

    if (a_nb_args > 1)
    {
        CLI_disp_error("Syntax:=>   TestGridIron   \n");
    }
    else
    {
        if (a_nb_args == 1)
        {
            if (0 == TestGridironLiveCast())
            {
                sprintf(mess, "GridIron live cast testing completed successfully\n");
                mmte_testComment(mess);
                MMTE_TEST_PASSED();
                return (0);
            }
        }
    }


    sprintf(mess, "GridIron live cast testing not done\n");
    mmte_testComment(mess);
    MMTE_TEST_FAILED();
    return (0);
}
/* -----------------------------------------------------------------------
   FUNCTION : C_ite_dbg_ConfigureGridIron_StaticPrams_cmd
   PURPOSE  :
   ------------------------------------------------------------------------ */
CMD_COMPLETION
C_ite_dbg_ConfigureGridIron_StaticPrams_cmd(
int     a_nb_args,
char    **ap_args)
{
    char    mess[256];

    sprintf(mess, "ConfigureGridIron_%d", ( int ) g_u32_counter_gridiron_conf);
    g_u32_counter_gridiron_conf++;

    MMTE_TEST_START(mess, "/ite_nmf/test_results_nreg/GridIron_tests", "Test ConfigureGridIronStatic");

    sprintf(mess, "Testing for GridIron");
    mmte_testNext(mess);

    LOS_Log("******************* GRIDIRON STATIC CONFIGURATION START **********************\n");

    if (a_nb_args != 3)
    {
        if (0 == strcmp(ap_args[1], "help"))
        {
            CLI_disp_error("Syntax: ConfigureGridIronStatic , Configures GridIron interface provided by ISP FW \n");
        }
    }
    else
    {
        Configure_Gridiron_StaticPrarams(ap_args[1][0] - '0', ap_args[2][0] - '0');
        Enable_Gridiron(Flag_e_TRUE);
        LOS_Log("GridIron configuration done\n");
    }


    LOS_Log("**************************** GRIDIRON STATIC CONFIGURATION END************************\n");

    MMTE_TEST_PASSED();
    return (0);
}