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

  \brief Interface of hex switch.

  \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/10/08 A. Khromykh - Created
******************************************************************************/
#ifndef _HEXSWITCH_H
#define _HEXSWITCH_H

/******************************************************************************
                   Includes section
******************************************************************************/
#include <types.h>

/******************************************************************************
                   Define(s) section
******************************************************************************/
#define HEX_SWITCH_FIRST   0
#define HEX_SWITCH_SECOND  1

/******************************************************************************
                   Prototypes section
******************************************************************************/
/**************************************************************************//**
\brief Read the hex switch.

\param[in]
  nmSwitch - hex switch number

\return
  hex code.
******************************************************************************/
uint8_t BSP_ReadHexSwitch(uint8_t nmSwitch);

#endif /* _HEXSWITCH_H */