summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/HAL/include/uid.h
blob: 1adbaeb6d13c79fd6437f004088c30d0b2e707f1 (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
/**************************************************************************//**
  \file  uid.h

  \brief The header file describes the UID interface.

  \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:
    7/12/07 A. Khromykh - Created
 ******************************************************************************/
/******************************************************************************
 *   WARNING: CHANGING THIS FILE MAY AFFECT CORE FUNCTIONALITY OF THE STACK.  *
 *   EXPERT USERS SHOULD PROCEED WITH CAUTION.                                *
 ******************************************************************************/

#ifndef _UID_H
#define _UID_H

/******************************************************************************
                   Includes section
******************************************************************************/
// \cond
#include <types.h>
// \endcond

/******************************************************************************
                   Prototypes section
******************************************************************************/
/************************************************************//**
\brief  UID discovery.
\param[in]
    id - UID buffer pointer. \n
    Attention! Memory size must equal <i> (Number of devices) * 8 bytes </i>
\return
    0 - if UID of DS2411 has been found successfully; \n
   -1 - if some error occured during UID discovery.
****************************************************************/
int HAL_ReadUid(uint64_t *id);

#endif /* _UID_H */

// eof uid.h