summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclInt.h
blob: d984f38f706353ef91707272ab51146c469634e0 (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
/************************************************************************//**
  \file zcl.h

  \brief
    The header file describes internal ZCL interface

    The header file describes internal ZCL interface and types

  \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:
    09.12.08 I. Fedina - Created.
******************************************************************************/

#ifndef _ZCLINT_H
#define _ZCLINT_H

#include <zcl.h>
#include <clusters.h>

BEGIN_PACK
typedef struct PACK
{
  uint8_t           status;
  ZCL_AttributeId_t id;
  uint8_t           type;
  uint8_t           value[1];
} ZclReadAttributeResp_t;

typedef struct PACK
{
  uint8_t           status;
  ZCL_AttributeId_t id;
} ZclWriteAttributeResp_t;
END_PACK

uint8_t zclGetSequenceNumber(Endpoint_t endpointId);
ZclAttribute_t *zclGetNextAttribute(Endpoint_t endpoint, ClusterId_t clusterId, uint8_t direction, ZclAttribute_t *currentAttribute);

#endif // _ZCL_INT_H