summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h
blob: 859ea7b41bc436a517ff1336da8a2f14de68f449 (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
/**************************************************************************//**
  \file zdoReset.h

  \brief Interface for ZDO reset routine

  \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:
    29.10.09 A. Taradov - Created
******************************************************************************/

#ifndef _ZDORESET_H
#define _ZDORESET_H

/******************************************************************************
                        Definitions section
******************************************************************************/
typedef struct
{
  ZDO_Status_t status;
} ZDO_SoftwareResetConf_t;

typedef struct
{
  ZDO_SoftwareResetConf_t confirm;
  void (*ZDO_SoftwareResetConf)(ZDO_Status_t status);
} ZDO_SoftwareResetReq_t;

typedef struct
{
  void (*stackResetCallback)(ZDO_Status_t status);
} ZdoReset_t;

/******************************************************************************
                   Prototypes section
******************************************************************************/
/**************************************************************************//**
  \brief Stack software reset routine.

  \param[in] req - pointer to request parameters.

  \return None.
 ******************************************************************************/
void ZDO_SoftwareResetReq(ZDO_SoftwareResetReq_t *req);

/******************************************************************************
  \brief ZDO reset routine
******************************************************************************/
void zdoReset(void);

/**************************************************************************//**
  \brief Stack resetting start routine.

  \param[in] powerFailureControl - stack restoring after power failure control bitfield;
                                  affects on initialization procedure.
  \param[out] callback - callback to stack reset finished handler.

  \return None.
 ******************************************************************************/
void zdoStackReset(NWK_PowerFailureControl_t powerFailureControl, void (*callback)(ZDO_Status_t status));

/**************************************************************************//**
  \brief Reset component initialization routine.
 ******************************************************************************/
void zdoInitResetComponent(void);

#endif // _ZDORESET_H

// eof zdoReset.h