summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiScanHandler.h
blob: ab0304aeec821b1252a8e095d0d5bc5052345d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/******************************************************************************
  \file machwiScanHandler.h
  
  \brief Header file of machwiScanHandler.c.

  \author
    Atmel Corporation: http://www.atmel.com \n
    Support email: avr@atmel.com

  Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
  Licensed under Atmel's Limited License Agreement (BitCloudTM).
  
  \internal
    History:     
      24/06/07 ALuzhetsky - Created.
******************************************************************************/

#ifndef _MACHWISCANHANDLER_H
#define _MACHWISCANHANDLER_H

/******************************************************************************
                        Includes section
******************************************************************************/
#include <machwd.h>
#include <machwiManager.h>

/******************************************************************************
                        Defines section
******************************************************************************/

/******************************************************************************
                         Types section
******************************************************************************/
typedef enum
{
  MACHWI_IDLE_SCAN_STATE,
  MACHWI_SET_CHANNEL_SCAN_STATE,
  MACHWI_SET_BEACON_RX_MODE_SCAN_STATE,
  MACHWI_CLR_BEACON_RX_MODE_SCAN_STATE,
  MACHWI_SET_PAGE_SCAN_STATE,
  MACHWI_SET_TRX_STATE_TRX_OFF_SCAN_STATE,
  MACHWI_SET_TRX_STATE_RX_ON_SCAN_STATE,
  MACHWI_SET_RF_IRQ_DISABLE_SCAN_STATE,
  MACHWI_SET_RF_IRQ_ENABLE_SCAN_STATE,
  MACHWI_SET_SHORT_ADDR_SCAN_STATE,
  MACHWI_SET_PANID_SCAN_STATE,
  MACHWI_SET_CHANNEL_AFTER_ORPHAN_SCAN_STATE,
  MACHWI_WAIT_SCAN_STATE,
  MACHWI_SCAN_TIME_EXHAUSTED_SCAN_STATE,
  MACHWI_SET_ACTIVE_CHANNEL_SCAN_STATE,
  MACHWI_SET_PANID_BROADCAST_SCAN_STATE,
  MACHWI_SET_PANID_ORIGINAL_SCAN_STATE
} MachwiScanState_t;

/******************************************************************************
                        Prototypes section
******************************************************************************/
/******************************************************************************
  TBD
 Parameters:
   TBD - TBD.
 Returns:
   TBD.
******************************************************************************/
MachwiHandlerResult_t machwiScanReqHandler(void);


/******************************************************************************
  Indicates, that beacon frame was received.
  Parameters:
    beaconDescr - beacon description.
  Returns:
    none.
******************************************************************************/
void machwiBeaconInd(MAC_FrameDescr_t *beaconDescr);

/******************************************************************************
  Indicates, that coordinator realignment connamd was received.
  Parameters:
    realignmentDescr - realignment command description.
  Returns:
    none.
******************************************************************************/
void machwiCoordRealignmentCommandInd(MAC_FrameDescr_t *realignmentDescr);

/******************************************************************************
  Resets scan handler.
  Parameters:
    none.
  Returns:
    none.
******************************************************************************/
void machwiResetScanHandler(void);

#endif /* _MACHWISCANHANDLER_H */

// eof machwiScanHandler.h