From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../stack/Components/BSP/include/sliders.h | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/BSP/include/sliders.h (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/include/sliders.h') diff --git a/digital/zigbit/bitcloud/stack/Components/BSP/include/sliders.h b/digital/zigbit/bitcloud/stack/Components/BSP/include/sliders.h new file mode 100644 index 00000000..67c19e93 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/BSP/include/sliders.h @@ -0,0 +1,43 @@ +/**************************************************************************//** + \file sliders.h + + \brief The header file describes the sliders 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: + 29/06/07 E. Ivanov - Created +******************************************************************************/ + +#ifndef _SLIDERS_H +#define _SLIDERS_H + +/****************************************************************************** + Define(s) section +******************************************************************************/ +#define SLIDER0 (1 << 0) +#define SLIDER1 (1 << 1) +#define SLIDER2 (1 << 2) +#define SLIDER3 (1 << 3) + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/**************************************************************************//** +\brief Reads the sliders. +\return + State of onboard DIP switches. Use the ::SLIDER0, ::SLIDER1, ::SLIDER2, + ::SLIDER3 constants to check state. Bit value 1 indicates that the + corresponding slider is on.\n + Note that the ::SLIDER3 is available on MeshBean LAN and Turbo board only. +******************************************************************************/ +uint8_t BSP_ReadSliders(void); + +#endif /* _SLIDERS_H */ +// eof sliders.h -- cgit v1.2.3