summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/private/tcKeyUpdateHandler.h
blob: 652dd3ec6ec0fbbd28b2035f190908b0fe0bce0b (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
/**************************************************************************//**
  \file tcKeyUpdateHandler.h
  
  \brief Trust Centre key update routine header file.

  \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:
      2008.01.11 - ALuzhetsky created.
******************************************************************************/
#ifndef _TCKEYUPDATEHANDLERH
#define _TCKEYUPDATEHANDLERH

/******************************************************************************
                        Includes section.
******************************************************************************/
#include <queue.h>
#include <appTimer.h>
#include <aps.h>

typedef struct
{
  QueueDescriptor_t reqQueueDescr;
  APS_KeyHandle_t  keyHandle;
  void              *currentReq;
  union
  {
    APS_TransportKeyReq_t transportKeyReq;
    APS_SwitchKeyReq_t    switchKeyReq;
    HAL_AppTimer_t        keyUpdateTimer;
  };
} TcKeyUpdateHandlerMem_t;

/******************************************************************************
                        Functions prototypes section.
******************************************************************************/
/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
void tcKeyUpdateTaskHandler(void);

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
void tcResetKeyUpdateHandler(void);

#endif //_TCKEYUPDATEHANDLERH
// eof tcKeyUpdateHandler.h