dspic33_pwm_test.X/cli.c
/*
 *	\brief! executes a parsed string 
 *
 *  \param! cmd  - pointer to serial data struct <ser_cfg.h>
            CMDS - pointer to SHELLCMD struct
 */
\brief. executes a parsed string
\param. cmd  - pointer to serial data struct 
CMDS - pointer to SHELLCMD struct
\ brief . executes a parsed string \ param . cmd - pointer to serial data struct CMDS - pointer to SHELLCMD struct
bool execute_command( _ring_buffer * cmd , _cli_shell *command_lut )
{
    parse_raw_data( cmd );
    while( command_lut->token )
    {
        if( !strcmp( (char *)cmd->rx , command_lut->token ) )
        {
            mthd_param = command_lut->entry_par;
            if( (*command_lut->entry)( (char *)cmd->rx ) ) 
               return true;
        }
        command_lut++;
    }
	 return false;
}
bool execute_command ( _ring_buffer * cmd , _cli_shell * command_lut ) { parse_raw_data ( cmd ) ; while ( command_lut -> token ) { if ( ! strcmp ( ( char * ) cmd -> rx , command_lut -> token ) ) { mthd_param = command_lut -> entry_par ; if ( ( * command_lut -> entry ) ( ( char * ) cmd -> rx ) ) return true ; } command_lut ++ ; } return false ; }
\brief!
\ brief!