1 /* 2 * roamingMngr_manualSM.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 roamingMngr_manualSM.h 35 * \brief Internal Roaming Manager API 36 * 37 * \see roamingMngr.c 38 */ 39 40 /**************************************************************************** 41 * * 42 * MODULE: Roaming Manager * 43 * PURPOSE: Roaming Manager Module API * 44 * * 45 ****************************************************************************/ 46 47 #ifndef _ROAMING_MNGR_MANUAL_SM_H_ 48 #define _ROAMING_MNGR_MANUAL_SM_H_ 49 50 /*-----------*/ 51 /* Constants */ 52 /*-----------*/ 53 54 /** state machine states */ 55 typedef enum 56 { 57 /* 0 */ ROAMING_MANUAL_STATE_IDLE = 0, 58 /* 1 */ ROAMING_MANUAL_STATE_CONNECTED, 59 /* 2 */ ROAMING_MANUAL_STATE_SCAN, 60 /* 3 */ ROAMING_MANUAL_STATE_HANDOVER, 61 /* 4 */ ROAMING_MANUAL_STATE_LAST 62 } ERoamManual_smStates; 63 64 /** State machine events */ 65 typedef enum 66 { 67 /* 0 */ ROAMING_MANUAL_EVENT_START = 0, 68 /* 1 */ ROAMING_MANUAL_EVENT_SCAN, 69 /* 2 */ ROAMING_MANUAL_EVENT_CONNECT, 70 /* 3 */ ROAMING_MANUAL_EVENT_STOP, 71 /* 4 */ ROAMING_MANUAL_EVENT_REJECT, 72 /* 5 */ ROAMING_MANUAL_EVENT_SUCCESS, 73 /* 6 */ ROAMING_MANUAL_EVENT_FAIL, 74 /* 7 */ ROAMING_MANUAL_EVENT_COMPLETE, 75 /* 8 */ ROAMING_MANUAL_EVENT_LAST, 76 } ERoamManual_smEvents; 77 78 79 #define ROAMING_MANUAL_NUM_STATES ROAMING_MANUAL_STATE_LAST 80 #define ROAMING_MANUAL_NUM_EVENTS ROAMING_MANUAL_EVENT_LAST 81 82 83 extern TGenSM_actionCell roamingMngrManual_matrix[ROAMING_MANUAL_NUM_STATES][ROAMING_MANUAL_NUM_EVENTS]; 84 extern TI_INT8* ManualRoamStateDescription[]; 85 extern TI_INT8* ManualRoamEventDescription[]; 86 87 /*--------------*/ 88 /* Enumerations */ 89 /*--------------*/ 90 91 /*----------*/ 92 /* Typedefs */ 93 /*----------*/ 94 95 /*------------*/ 96 /* Structures */ 97 /*------------*/ 98 99 /*---------------------------*/ 100 /* External data definitions */ 101 /*---------------------------*/ 102 103 /*--------------------------------*/ 104 /* External functions definitions */ 105 /*--------------------------------*/ 106 107 /*----------------------------*/ 108 /* Global Function prototypes */ 109 /*----------------------------*/ 110 111 112 #endif /* _ROAMING_MNGR_MANUAL_SM_H_ */ 113 114