summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h
blob: a37b19ff6c71f9e79f77aaeb2fc230d91d4f2276 (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
/************************************************************************//**
  \file caps.h

  \brief
    The header file describes the CAPS interface

    The file describes the interface and types of CAPS

  \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:
    27.11.08 A. Potashov - Created.
******************************************************************************/

#ifndef _CAPS_H
#define _CAPS_H

/******************************************************************************
                   Includes section
******************************************************************************/
#include <types.h>
#include <aps.h>
#include <appFramework.h>
#include <macAddr.h>
//#include <usart.h>

/******************************************************************************
                   Define(s) section
******************************************************************************/
#define CAPS_SERIAL_CHANNEL   UART_CHANNEL_1
#ifdef _ZCL_SECURITY_
  #define CAPS_DO_NOT_USE_APS_SECURITY     false
#else /* _ZCL_SECURITY_ */
  #define CAPS_DO_NOT_USE_APS_SECURITY     true
#endif /* _ZCL_SECURITY_ */

/******************************************************************************
                   Types section
******************************************************************************/


/*****************************************************************************
  Special CAPS data types definition
*****************************************************************************/
typedef enum
{
  CAPS_SERIAL_NONE     = 0x00,
  CAPS_SERIAL_UART     = 0x01
} CAPS_Serial_t;


/******************************************************************************
                   Constants section
******************************************************************************/

/******************************************************************************
                   External variables section
******************************************************************************/

/******************************************************************************
                   Prototypes section
******************************************************************************/


/*****************************************************************************
  CAPS API Prototypes
*****************************************************************************/

/**************************************************************************//**
  \brief CAPS Data Request interface.

  APS_DataConf field in APS_DataReq must be an actual confirm handler pointer.

  \param[in] req The APS_DataReq_t primitive pointer.
  \param[in] serial The serial flag for redirection to the serial interface. CAPS_Serial_t must be used.
  \param[in] noApsSecurity If true APS security is switched off.
  \return    None.
*****************************************************************************/
extern void CAPS_DataReq(APS_DataReq_t *req, uint8_t serial, bool noApsSecurity);

#endif  //#ifndef _CAPS_H


//eof caps.h