1 /** \file connSelf.h 2 * \brief Self IBSS connection header file 3 * 4 * \see connSelf.c 5 */ 6 /**************************************************************************** 7 **+-----------------------------------------------------------------------+** 8 **| |** 9 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 10 **| All rights reserved. |** 11 **| |** 12 **| Redistribution and use in source and binary forms, with or without |** 13 **| modification, are permitted provided that the following conditions |** 14 **| are met: |** 15 **| |** 16 **| * Redistributions of source code must retain the above copyright |** 17 **| notice, this list of conditions and the following disclaimer. |** 18 **| * Redistributions in binary form must reproduce the above copyright |** 19 **| notice, this list of conditions and the following disclaimer in |** 20 **| the documentation and/or other materials provided with the |** 21 **| distribution. |** 22 **| * Neither the name Texas Instruments nor the names of its |** 23 **| contributors may be used to endorse or promote products derived |** 24 **| from this software without specific prior written permission. |** 25 **| |** 26 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 27 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 28 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 29 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 30 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 31 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 32 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 33 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 34 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 35 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 36 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 37 **| |** 38 **+-----------------------------------------------------------------------+** 39 ****************************************************************************/ 40 41 /***************************************************************************/ 42 /* */ 43 /* MODULE: connSelf.h */ 44 /* PURPOSE: Self IBSS connection header file */ 45 /* */ 46 /***************************************************************************/ 47 #if 0 48 #ifndef __CONN_SELF_H__ 49 #define __CONN_SELF_H__ 50 51 #include "osTIType.h" 52 #include "paramOut.h" 53 #include "paramIn.h" 54 #include "conn.h" 55 56 /* Self IBSS connection states */ 57 typedef enum 58 { 59 CONN_SELF_STATE_IDLE = 0, 60 CONN_SELF_STATE_WAIT = 1, 61 CONN_SELF_STATE_RSN_WAIT = 2, 62 CONN_SELF_STATE_CONNECTED = 3, 63 CONN_SELF_NUM_STATES = 4, 64 } smeState_t; 65 66 typedef enum 67 { 68 CONN_SELF_START = 0, 69 CONN_SELF_STOP = 1, 70 CONN_SELF_RSN_SUCC = 2, 71 CONN_SELF_RSN_FAIL = 3, 72 CONN_SELF_STA_JOINED = 4, 73 CONN_SELF_TIMEOUT = 5, 74 CONN_SELF_NUM_EVENTS = 6, 75 } connSelfEvent_e; 76 77 TI_STATUS conn_selfConfig(conn_t *pConn); 78 79 TI_STATUS conn_selfSMEvent(UINT8 *currentState, UINT8 event, TI_HANDLE hConn); 80 81 82 #endif /* __CONN_SELF_H__ */ 83 #endif 84