PageRenderTime 58ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/Management/AirLink/inc/measurementMgrSM.h

http://github.com/CyanogenMod/cm-kernel
C Header | 93 lines | 32 code | 19 blank | 42 comment | 0 complexity | 7f79b6666f0a6d148da37617c63c5690 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /****************************************************************************
  2. **+-----------------------------------------------------------------------+**
  3. **| |**
  4. **| Copyright(c) 1998 - 2008 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. /***************************************************************************/
  36. /* */
  37. /* MODULE: measurementMgrSM.h */
  38. /* PURPOSE: measurement Manager module State Machine header file */
  39. /* */
  40. /***************************************************************************/
  41. #ifndef __MEASUREMENTMGRSM_H__
  42. #define __MEASUREMENTMGRSM_H__
  43. #include "fsm.h"
  44. /** State machine states */
  45. typedef enum
  46. {
  47. MEASUREMENTMGR_STATE_IDLE = 0,
  48. MEASUREMENTMGR_STATE_PROCESSING_REQUEST = 1,
  49. MEASUREMENTMGR_STATE_WAITING_FOR_SCR = 2,
  50. MEASUREMENTMGR_STATE_MEASURING = 3,
  51. MEASUREMENTMGR_STATE_LAST = 4
  52. } measurementMgrSM_States;
  53. /** State machine events */
  54. typedef enum
  55. {
  56. MEASUREMENTMGR_EVENT_CONNECTED = 0,
  57. MEASUREMENTMGR_EVENT_DISCONNECTED = 1,
  58. MEASUREMENTMGR_EVENT_ENABLE = 2,
  59. MEASUREMENTMGR_EVENT_DISABLE = 3,
  60. MEASUREMENTMGR_EVENT_FRAME_RECV = 4,
  61. MEASUREMENTMGR_EVENT_SEND_REPORT = 5,
  62. MEASUREMENTMGR_EVENT_REQUEST_SCR = 6,
  63. MEASUREMENTMGR_EVENT_SCR_WAIT = 7,
  64. MEASUREMENTMGR_EVENT_SCR_RUN = 8,
  65. MEASUREMENTMGR_EVENT_ABORT = 9,
  66. MEASUREMENTMGR_EVENT_COMPLETE = 10,
  67. MEASUREMENTMGR_EVENT_FW_RESET = 11,
  68. MEASUREMENTMGR_EVENT_LAST = 12
  69. } measurementMgrSM_Events;
  70. #define MEASUREMENTMGR_NUM_STATES MEASUREMENTMGR_STATE_LAST
  71. #define MEASUREMENTMGR_NUM_EVENTS MEASUREMENTMGR_EVENT_LAST
  72. TI_STATUS measurementMgrSM_config(TI_HANDLE hMeasurementMgr);
  73. TI_STATUS measurementMgrSM_event(UINT8 * currentState, UINT8 event, TI_HANDLE hMeasurementMgr);
  74. #endif /* __MEASUREMENTMGRSM_H__*/