summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h b/digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h
new file mode 100644
index 00000000..de869031
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/BSP/MESHBEAN/include/tsl2550.h
@@ -0,0 +1,64 @@
+/**************************************************************************//**
+\file tsl2550.h
+
+\brief Declarations of tsl2550 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 _TSL2550_SENSOR_H
+#define _TSL2550_SENSOR_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+// \cond
+#include <types.h>
+// \endcond
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+/**************************************************************************//**
+\brief Opens the component to use.
+\return
+ BC_SUCCESS - the component is ready to been use. \n
+ BC_FAIL - otherwise.
+******************************************************************************/
+result_t openTsl2550(void);
+
+/**************************************************************************//**
+\brief Performs the test if the component have uncompleted request.
+\return
+ BC_FAIL - the previous request is not completed. \n
+ BC_SUCCES - otherwise.
+******************************************************************************/
+result_t closeTsl2550(void);
+
+/**************************************************************************//**
+\brief Reads data from tsl2550 sensor.
+\param[in]
+ result - the result of the requested operation.
+ true - operation finished successfully, false - some error has
+ occured.
+\param[in]
+ data - sensor data.
+\return
+ BC_FAIL - the previous request was not completed, \n
+ the address of callback is 0, i2c interface is busy, \n
+ there is error on i2c interface. \n
+ BC_SUCCESS - other case.
+******************************************************************************/
+result_t readTsl2550Data(void (*f)(bool result, int16_t data));
+
+#endif /* _TSL2550_SENSOR_H */
+// eof tsl2550.h