Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Components/Common/Imu6Axes.h@18:1cb4ae9d83e7, 2015-05-29 (annotated)
- Committer:
- Wolfgang Betz
- Date:
- Fri May 29 14:23:22 2015 +0200
- Revision:
- 18:1cb4ae9d83e7
- Parent:
- 5:8bab0f419849
Remove Cube specific types from abstract classes
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Wolfgang Betz |
5:8bab0f419849 | 1 | /** |
| Wolfgang Betz |
5:8bab0f419849 | 2 | ****************************************************************************** |
| Wolfgang Betz |
5:8bab0f419849 | 3 | * @file Imu6Axes.h |
| Wolfgang Betz |
5:8bab0f419849 | 4 | * @author AST / EST |
| Wolfgang Betz |
5:8bab0f419849 | 5 | * @version V0.0.1 |
| Wolfgang Betz |
5:8bab0f419849 | 6 | * @date 13-April-2015 |
| Wolfgang Betz |
5:8bab0f419849 | 7 | * @brief This file contains the abstract class describing in general |
| Wolfgang Betz |
5:8bab0f419849 | 8 | * the interfaces of a 6-axes accelerometer and gyroscope |
| Wolfgang Betz |
5:8bab0f419849 | 9 | ****************************************************************************** |
| Wolfgang Betz |
5:8bab0f419849 | 10 | * @attention |
| Wolfgang Betz |
5:8bab0f419849 | 11 | * |
| Wolfgang Betz |
5:8bab0f419849 | 12 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| Wolfgang Betz |
5:8bab0f419849 | 13 | * |
| Wolfgang Betz |
5:8bab0f419849 | 14 | * Redistribution and use in source and binary forms, with or without modification, |
| Wolfgang Betz |
5:8bab0f419849 | 15 | * are permitted provided that the following conditions are met: |
| Wolfgang Betz |
5:8bab0f419849 | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
| Wolfgang Betz |
5:8bab0f419849 | 17 | * this list of conditions and the following disclaimer. |
| Wolfgang Betz |
5:8bab0f419849 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Wolfgang Betz |
5:8bab0f419849 | 19 | * this list of conditions and the following disclaimer in the documentation |
| Wolfgang Betz |
5:8bab0f419849 | 20 | * and/or other materials provided with the distribution. |
| Wolfgang Betz |
5:8bab0f419849 | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Wolfgang Betz |
5:8bab0f419849 | 22 | * may be used to endorse or promote products derived from this software |
| Wolfgang Betz |
5:8bab0f419849 | 23 | * without specific prior written permission. |
| Wolfgang Betz |
5:8bab0f419849 | 24 | * |
| Wolfgang Betz |
5:8bab0f419849 | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Wolfgang Betz |
5:8bab0f419849 | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Wolfgang Betz |
5:8bab0f419849 | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Wolfgang Betz |
5:8bab0f419849 | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Wolfgang Betz |
5:8bab0f419849 | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Wolfgang Betz |
5:8bab0f419849 | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Wolfgang Betz |
5:8bab0f419849 | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Wolfgang Betz |
5:8bab0f419849 | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Wolfgang Betz |
5:8bab0f419849 | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Wolfgang Betz |
5:8bab0f419849 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Wolfgang Betz |
5:8bab0f419849 | 35 | * |
| Wolfgang Betz |
5:8bab0f419849 | 36 | ****************************************************************************** |
| Wolfgang Betz |
5:8bab0f419849 | 37 | */ |
| Wolfgang Betz |
5:8bab0f419849 | 38 | |
| Wolfgang Betz |
5:8bab0f419849 | 39 | /* Define to prevent from recursive inclusion --------------------------------*/ |
| Wolfgang Betz |
5:8bab0f419849 | 40 | #ifndef __IMU_6AXES_CLASS_H |
| Wolfgang Betz |
5:8bab0f419849 | 41 | #define __IMU_6AXES_CLASS_H |
| Wolfgang Betz |
5:8bab0f419849 | 42 | |
| Wolfgang Betz |
5:8bab0f419849 | 43 | /* Includes ------------------------------------------------------------------*/ |
| Wolfgang Betz |
5:8bab0f419849 | 44 | #include "mbed.h" |
| Wolfgang Betz |
5:8bab0f419849 | 45 | |
| Wolfgang Betz |
5:8bab0f419849 | 46 | /* Classes ------------------------------------------------------------------*/ |
| Wolfgang Betz |
5:8bab0f419849 | 47 | /** An abstract class for Imu6Axes components |
| Wolfgang Betz |
5:8bab0f419849 | 48 | */ |
| Wolfgang Betz |
5:8bab0f419849 | 49 | class Imu6Axes |
| Wolfgang Betz |
5:8bab0f419849 | 50 | { |
| Wolfgang Betz |
5:8bab0f419849 | 51 | public: |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 52 | virtual int Init(void*) = 0; |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 53 | virtual int Read_XG_ID(uint8_t*) = 0; |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 54 | virtual int Get_X_Axes(int32_t*) = 0; |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 55 | virtual int Get_G_Axes(int32_t*) = 0; |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 56 | virtual int Get_X_Sensitivity(float*) = 0; |
| Wolfgang Betz |
18:1cb4ae9d83e7 | 57 | virtual int Get_G_Sensitivity(float*) = 0; |
| Wolfgang Betz |
5:8bab0f419849 | 58 | |
| Wolfgang Betz |
5:8bab0f419849 | 59 | protected: |
| Wolfgang Betz |
5:8bab0f419849 | 60 | Imu6Axes(void) {}; |
| Wolfgang Betz |
5:8bab0f419849 | 61 | }; |
| Wolfgang Betz |
5:8bab0f419849 | 62 | |
| Wolfgang Betz |
5:8bab0f419849 | 63 | #endif /* __IMU_6AXES_CLASS_H */ |
