Home | History | Annotate | Download | only in CLI
      1 /*******************************************************************************
      2 **+--------------------------------------------------------------------------+**
      3 **|                                                                          |**
      4 **| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/         |**
      5 **|                                                                          |**
      6 **| Licensed under the Apache License, Version 2.0 (the "License");          |**
      7 **| you may not use this file except in compliance with the License.         |**
      8 **| You may obtain a copy of the License at                                  |**
      9 **|                                                                          |**
     10 **|     http://www.apache.org/licenses/LICENSE-2.0                           |**
     11 **|                                                                          |**
     12 **| Unless required by applicable law or agreed to in writing, software      |**
     13 **| distributed under the License is distributed on an "AS IS" BASIS,        |**
     14 **| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |**
     15 **| See the License for the specific language governing permissions and      |**
     16 **| limitations under the License.                                           |**
     17 **|                                                                          |**
     18 **+--------------------------------------------------------------------------+**
     19 *******************************************************************************/
     20 
     21 #ifndef WIPP_CTRL_H
     22 #define WIPP_CTRL_H
     23 
     24 extern int wipp_control_general_process_pid;
     25 extern int wipp_control_general_process_out_pipe[2];
     26 
     27 
     28 #define WIPP_CONTROL_CMD_CPU_USAGE				('1')
     29 #define WIPP_CONTROL_CMD_MEM_USAGE				('2')
     30 #define WIPP_CONTROL_CMD_REPORT_VERSION			('3')
     31 #define WIPP_CONTROL_CMD_DEBUG_CONTROL			('4')
     32 #define WIPP_CONTROL_CMD_DEBUG_PATH				('5')
     33 #define WIPP_CONTROL_CMD_ACTIVATE_PROCESS		('6')
     34 #define WIPP_CONTROL_CMD_TERMINATE_PROCESS		('7')
     35 #define WIPP_CONTROL_CMD_GET_VERSIONS		    ('a')
     36 
     37 
     38 #define WIPP_CONTROL_EVT_RUN_PROCESS_STDOUT			(0x00)
     39 #define WIPP_CONTROL_EVT_RUN_PROCESS_TERMINATE		(0x01)
     40 #define WIPP_CONTROL_EVT_RUN_PROCESS_IS_RUNING		(0x02)
     41 #define WIPP_CONTROL_EVT_RUN_PROCESS_IS_NOT_RUNING  (0x03)
     42 void wipp_control_send_iperf_results_to_host(unsigned char event, char *inbuf, int result);
     43 
     44 unsigned char wipp_control_check_command(char *input_string);
     45 
     46 void wipp_control_init(void);
     47 void wipp_control_deinit(void);
     48 
     49 #endif /* #define WIPP_CTRL_H */
     50