1 /* 2 * SwitchChannelApi.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 /** \file SwitchChannel.h 35 * \brief SwitchChannel module interface header file 36 * 37 * \see SwitchChannel.c 38 */ 39 40 /***************************************************************************/ 41 /* */ 42 /* MODULE: SwitchChannel.h */ 43 /* PURPOSE: SwitchChannel module inteerface header file */ 44 /* */ 45 /***************************************************************************/ 46 #ifndef __SWITCH_CHANNEL_H__ 47 #define __SWITCH_CHANNEL_H__ 48 49 #include "paramOut.h" 50 #include "DrvMainModules.h" 51 52 53 TI_HANDLE switchChannel_create(TI_HANDLE hOs); 54 55 void switchChannel_init (TStadHandlesList *pStadHandles); 56 57 TI_STATUS switchChannel_SetDefaults (TI_HANDLE hSwitchChannel, SwitchChannelInitParams_t *SwitchChannelInitParams); 58 59 TI_STATUS switchChannel_stop(TI_HANDLE hSwitchChannel); 60 61 TI_STATUS switchChannel_start(TI_HANDLE hSwitchChannel); 62 63 TI_STATUS switchChannel_unload(TI_HANDLE hSwitchChannel); 64 65 void switchChannel_recvCmd(TI_HANDLE hSwitchChannel, dot11_CHANNEL_SWITCH_t *channelSwitch, TI_UINT8 channel); 66 67 void switchChannel_enableDisableSpectrumMngmt(TI_HANDLE hSwitchChannel, TI_BOOL enableDisable); 68 69 70 71 /* for debug */ 72 typedef enum 73 { 74 SC_SWITCH_CHANNEL_NUM, 75 SC_SWITCH_CHANNEL_TBTT, 76 SC_SWITCH_CHANNEL_MODE 77 } SC_switchChannelCmdParam_e; 78 79 #ifdef TI_DBG 80 81 void switchChannelDebug_switchChannelCmdTest(TI_HANDLE hSwitchChannel, TI_BOOL BeaconPacket); 82 void switchChannelDebug_CancelSwitchChannelCmdTest(TI_HANDLE hSwitchChannel, TI_BOOL BeaconPacket); 83 void switchChannelDebug_setChannelValidity(TI_HANDLE hSwitchChannel, TI_UINT8 channelNum, TI_BOOL validity); 84 void switchChannelDebug_printStatus(TI_HANDLE hSwitchChannel); 85 void switchChannelDebug_setCmdParams(TI_HANDLE hSwitchChannel, SC_switchChannelCmdParam_e switchChannelCmdParam, TI_UINT8 param); 86 void switchChannelDebug_SwitchChannelCmdTest(TI_HANDLE hSwitchChannel, TI_BOOL BeaconPacket); 87 #endif 88 89 #endif /* __SWITCH_CHANNEL_H__*/ 90