summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h b/digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h
new file mode 100644
index 00000000..f052fa83
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/BSP/include/hexSwitch.h
@@ -0,0 +1,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 */