Javascript wrappers for LSM6DSL Sensor library
Dependencies: LSM6DSL
LSM6DSL_JS-js.h@6:97726929e01f, 2018-01-17 (annotated)
- Committer:
- akhtar.syedzeeshan@gmail.com
- Date:
- Wed Jan 17 10:56:16 2018 +0100
- Revision:
- 6:97726929e01f
- Parent:
- 2:ebd484d17a02
Code fixes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 1 | /** |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 2 | ****************************************************************************** |
akhtar.syedzeeshan@gmail.com | 2:ebd484d17a02 | 3 | * @file LSM6DSL_JS-js.h |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 4 | * @author ST |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 5 | * @version V1.0.0 |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 6 | * @date 9 October 2017 |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 7 | * @brief Implementation of an LSM6DSL Accelerometer and gyroscope sensor for |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 8 | * use with Javascript. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 9 | ****************************************************************************** |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 10 | * @attention |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 11 | * |
akhtar.syedzeeshan@gmail.com | 6:97726929e01f | 12 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 13 | * |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 14 | * Redistribution and use in source and binary forms, with or without modification, |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 15 | * are permitted provided that the following conditions are met: |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 17 | * this list of conditions and the following disclaimer. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 19 | * this list of conditions and the following disclaimer in the documentation |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 20 | * and/or other materials provided with the distribution. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 22 | * may be used to endorse or promote products derived from this software |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 23 | * without specific prior written permission. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 24 | * |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 35 | * |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 36 | ****************************************************************************** |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 37 | */ |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 38 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 39 | /* Prevent recursive inclusion -----------------------------------------------*/ |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 40 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 41 | #ifndef _LSM6DSL_JS_JS_H |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 42 | #define _LSM6DSL_JS_JS_H |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 43 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 44 | /* Includes ------------------------------------------------------------------*/ |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 45 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 46 | // This file contains all the macros |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 47 | #include "jerryscript-mbed-library-registry/wrap_tools.h" |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 48 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 49 | // Class constructor |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 50 | DECLARE_CLASS_CONSTRUCTOR(LSM6DSL_JS); |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 51 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 52 | // Define a wrapper, we can load the wrapper in `main.cpp`. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 53 | // This makes it possible to load libraries optionally. |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 54 | DECLARE_JS_WRAPPER_REGISTRATION (LSM6DSL_JS_library) { |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 55 | REGISTER_CLASS_CONSTRUCTOR(LSM6DSL_JS); |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 56 | } |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 57 | |
akhtar.syedzeeshan@gmail.com | 0:7eb29414734d | 58 | #endif |