Home | History | Annotate | Download | only in Test
      1 /*
      2  * measurementDbg.h
      3  *
      4  * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
      5  * All rights reserved.
      6  *
      7  * Redistribution and use in source and binary forms, with or without
      8  * modification, are permitted provided that the following conditions
      9  * are met:
     10  *
     11  *  * Redistributions of source code must retain the above copyright
     12  *    notice, this list of conditions and the following disclaimer.
     13  *  * Redistributions in binary form must reproduce the above copyright
     14  *    notice, this list of conditions and the following disclaimer in
     15  *    the documentation and/or other materials provided with the
     16  *    distribution.
     17  *  * Neither the name Texas Instruments nor the names of its
     18  *    contributors may be used to endorse or promote products derived
     19  *    from this software without specific prior written permission.
     20  *
     21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32  */
     33 
     34 
     35 #ifndef __MEASUREMENT_DBG_H__
     36 #define __MEASUREMENT_DBG_H__
     37 
     38 /* definitions for ctrl dbg */
     39 
     40 #define DBG_MEASUREMENT_PRINT_HELP		    	0
     41 #define DBG_MEASUREMENT_PRINT_STATUS			1
     42 #define	DBG_MEASUREMENT_CHANNEL_LOAD_START  	2
     43 #define	DBG_MEASUREMENT_CHANNEL_LOAD_STOP	    3
     44 #define DBG_MEASUREMENT_SEND_FRAME_REQUEST      4
     45 #define DBG_MEASUREMENT_START_NOISE_HIST        5
     46 #define DBG_MEASUREMENT_STOP_NOISE_HIST         6
     47 #define DBG_MEASUREMENT_GET_NOISE_HIST_RESULTS  7
     48 #define DBG_MEASUREMENT_SEND_CHANNEL_LOAD_FRAME 8
     49 #define DBG_MEASUREMENT_SEND_BEACON_TABLE_FRAME 9
     50 #define DBG_MEASUREMENT_SEND_NOISE_HIST_1_FRAME 10
     51 #define DBG_MEASUREMENT_SEND_NOISE_HIST_2_FRAME 11
     52 #define DBG_MEASUREMENT_SET_TRAFFIC_THRSLD      12
     53 #define DBG_SC_PRINT_STATUS					    30
     54 #define DBG_SC_SET_SWITCH_CHANNEL_NUM			31
     55 #define DBG_SC_SET_SWITCH_CHANNEL_TBTT			32
     56 #define DBG_SC_SET_SWITCH_CHANNEL_MODE         33
     57 #define DBG_SC_SET_CHANNEL_AS_VALID			    34
     58 #define DBG_SC_SET_CHANNEL_AS_INVALID			35
     59 #define DBG_SC_SWITCH_CHANNEL_CMD				36
     60 #define DBG_SC_CANCEL_SWITCH_CHANNEL_CMD		37
     61 
     62 #define DBG_REG_DOMAIN_PRINT_VALID_CHANNELS		50
     63 
     64 
     65 
     66 
     67 void measurementDebugFunction(TI_HANDLE hMeasurementMgr, TI_HANDLE hSwitchChannel, TI_HANDLE hRegulatoryDomain, TI_UINT32 funcType, void *pParam);
     68 
     69 void measurement_channelLoadCallBackDbg(TI_HANDLE hMeasurementMgr, TI_STATUS status,
     70                                         TI_UINT8* CB_buf);
     71 
     72 void measurement_noiseHistCallBackDbg(TI_HANDLE hMeasurementMgr, TI_STATUS status,
     73                                       TI_UINT8* CB_buf);
     74 
     75 #endif /* __MEASUREMENT_DBG_H__*/
     76