INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Components/VL6180X/vl6180x_api.h
- Committer:
- licio.mapelli@st.com
- Date:
- 2015-09-29
- Revision:
- 8:f943a1fca15f
- Parent:
- 7:2dc81120c917
- Child:
- 10:4954b09b72d8
File content as of revision 8:f943a1fca15f:
/******************************************************************************* Copyright © 2014, STMicroelectronics International N.V. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED. IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ********************************************************************************/ /* * @file VL6180x_api.h * $Date: 2015-03-24 14:15:14 +0100 (Tue, 24 Mar 2015) $ * $Revision: 2213 $ */ #ifndef VL6180x_API_H_ #define VL6180x_API_H_ #include "vl6180x_def.h" #include "vl6180x_platform.h" #ifdef __cplusplus extern "C" { #endif /** @defgroup api_ll API Low Level Functions * @brief API Low level functions */ /** @defgroup api_hl API High Level Functions * @brief API High level functions */ #ifndef VL6180x_RANGE_STATUS_ERRSTRING #warning "VL6180x_RANGE_STATUS_ERRSTRING not defined ?" /* TODO you may remove or comment these #warning and keep the default below to keep compatibility or update your vl6180x_platform.h file */ /** * force VL6180x_RANGE_STATUS_ERRSTRING to not supported when not part of any cfg file */ #define VL6180x_RANGE_STATUS_ERRSTRING 0 #endif #ifndef VL6180X_SAFE_POLLING_ENTER #warning "VL6180X_SAFE_POLLING_ENTER not defined, likely old vl6180x_cfg.h file ?" /* TODO you may remove or comment these #warning and keep the default below to keep compatibility or update your vl6180x_platform.h file */ /** * force VL6180X_SAFE_POLLING_ENTER to off when not in cfg file */ #define VL6180X_SAFE_POLLING_ENTER 0 /* off by default as in api 2.0 */ #endif #ifndef VL6180X_LOG_ENABLE /** * Force VL6180X_LOG_ENABLE to none as default */ #define VL6180X_LOG_ENABLE 0 #endif #if VL6180x_RANGE_STATUS_ERRSTRING /**@def VL6180x_HAVE_RANGE_STATUS_ERRSTRING * @brief is defined when @a #VL6180x_RANGE_STATUS_ERRSTRING is enable */ #define VL6180x_HAVE_RANGE_STATUS_ERRSTRING #endif /** @brief Get API version as "hex integer" 0xMMnnss */ #define VL6180x_ApiRevInt ((VL6180x_API_REV_MAJOR<<24)+(VL6180x_API_REV_MINOR<<16)+VL6180x_API_REV_SUB) /** Get API version as string for exe "2.1.12" " */ #define VL6180x_ApiRevStr VL6180X_STR(VL6180x_API_REV_MAJOR) "." VL6180X_STR(VL6180x_API_REV_MINOR) "." VL6180X_STR(VL6180x_API_REV_SUB) /** @defgroup api_init Init functions * @brief API init functions * @ingroup api_hl * @{ */ #ifdef __cplusplus } #endif #endif /* VL6180x_API_H_ */