mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.
Components/tsu104/tsu104_class.cpp@6:5dd31859cea3, 2016-03-17 (annotated)
- Committer:
- hemddabral
- Date:
- Thu Mar 17 10:34:54 2016 +0000
- Revision:
- 6:5dd31859cea3
- Parent:
- 2:19d1dcef0c0e
- Child:
- 7:c66b5473f3a1
updated TSU104 API
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hemddabral | 6:5dd31859cea3 | 1 | /** |
hemddabral | 6:5dd31859cea3 | 2 | ****************************************************************************** |
hemddabral | 6:5dd31859cea3 | 3 | * @file tsu104_class.cpp |
hemddabral | 6:5dd31859cea3 | 4 | * @author Central Labs |
hemddabral | 6:5dd31859cea3 | 5 | * @version 1.0.0 |
hemddabral | 6:5dd31859cea3 | 6 | * @date 11-February-2016 |
hemddabral | 6:5dd31859cea3 | 7 | * @brief Portable architecture for TSU104 |
hemddabral | 6:5dd31859cea3 | 8 | ****************************************************************************** |
hemddabral | 6:5dd31859cea3 | 9 | * @attention |
hemddabral | 6:5dd31859cea3 | 10 | * |
hemddabral | 6:5dd31859cea3 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
hemddabral | 6:5dd31859cea3 | 12 | * |
hemddabral | 6:5dd31859cea3 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
hemddabral | 6:5dd31859cea3 | 14 | * are permitted provided that the following conditions are met: |
hemddabral | 6:5dd31859cea3 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
hemddabral | 6:5dd31859cea3 | 16 | * this list of conditions and the following disclaimer. |
hemddabral | 6:5dd31859cea3 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
hemddabral | 6:5dd31859cea3 | 18 | * this list of conditions and the following disclaimer in the documentation |
hemddabral | 6:5dd31859cea3 | 19 | * and/or other materials provided with the distribution. |
hemddabral | 6:5dd31859cea3 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
hemddabral | 6:5dd31859cea3 | 21 | * may be used to endorse or promote products derived from this software |
hemddabral | 6:5dd31859cea3 | 22 | * without specific prior written permission. |
hemddabral | 6:5dd31859cea3 | 23 | * |
hemddabral | 6:5dd31859cea3 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
hemddabral | 6:5dd31859cea3 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
hemddabral | 6:5dd31859cea3 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
hemddabral | 6:5dd31859cea3 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
hemddabral | 6:5dd31859cea3 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
hemddabral | 6:5dd31859cea3 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
hemddabral | 6:5dd31859cea3 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
hemddabral | 6:5dd31859cea3 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
hemddabral | 6:5dd31859cea3 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
hemddabral | 6:5dd31859cea3 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
hemddabral | 6:5dd31859cea3 | 34 | * |
hemddabral | 6:5dd31859cea3 | 35 | ****************************************************************************** |
hemddabral | 6:5dd31859cea3 | 36 | */ |
hemddabral | 6:5dd31859cea3 | 37 | |
hemddabral | 6:5dd31859cea3 | 38 | |
hemddabral | 6:5dd31859cea3 | 39 | /* Generated with STM32CubeTOO -----------------------------------------------*/ |
hemddabral | 6:5dd31859cea3 | 40 | |
hemddabral | 2:19d1dcef0c0e | 41 | |
hemddabral | 6:5dd31859cea3 | 42 | /* Revision ------------------------------------------------------------------*/ |
hemddabral | 6:5dd31859cea3 | 43 | /* |
hemddabral | 6:5dd31859cea3 | 44 | Repository: http://svn.x-nucleodev.codex.cro.st.com/svnroot/X-NucleoDev |
hemddabral | 6:5dd31859cea3 | 45 | Branch/Trunk/Tag: trunk |
hemddabral | 6:5dd31859cea3 | 46 | Based on: X-CUBE-IKA01A1/trunk/Drivers/BSP/Components/tsu104/tsu104.c |
hemddabral | 6:5dd31859cea3 | 47 | Revision: 410 |
hemddabral | 6:5dd31859cea3 | 48 | */ |
hemddabral | 6:5dd31859cea3 | 49 | |
hemddabral | 6:5dd31859cea3 | 50 | |
hemddabral | 6:5dd31859cea3 | 51 | /* Includes ------------------------------------------------------------------*/ |
hemddabral | 6:5dd31859cea3 | 52 | |
hemddabral | 6:5dd31859cea3 | 53 | #include "tsu104_class.h" |
hemddabral | 6:5dd31859cea3 | 54 | #include "tsu104.h" |
hemddabral | 6:5dd31859cea3 | 55 | |
hemddabral | 6:5dd31859cea3 | 56 | |
hemddabral | 6:5dd31859cea3 | 57 | /* Methods -------------------------------------------------------------------*/ |
hemddabral | 6:5dd31859cea3 | 58 | |
hemddabral | 6:5dd31859cea3 | 59 | static Status_t GetVoltage(unsigned int *ptrVoltage); |
hemddabral | 6:5dd31859cea3 | 60 | static Status_t GetCurrent(unsigned int *ptrCurrent); |
hemddabral | 6:5dd31859cea3 | 61 | |
hemddabral | 6:5dd31859cea3 | 62 | /* TSU104's private functions. */ |
hemddabral | 6:5dd31859cea3 | 63 | |
hemddabral | 6:5dd31859cea3 | 64 | |
hemddabral | 6:5dd31859cea3 | 65 | Status_t TSU104::TSU104_Init(void *init) { |
hemddabral | 6:5dd31859cea3 | 66 | |
hemddabral | 6:5dd31859cea3 | 67 | } |
hemddabral | 6:5dd31859cea3 | 68 | |
hemddabral | 6:5dd31859cea3 | 69 | Status_t TSU104::TSU104_ReadID(void *init) { |
hemddabral | 6:5dd31859cea3 | 70 | |
hemddabral | 6:5dd31859cea3 | 71 | } |
hemddabral | 6:5dd31859cea3 | 72 | |
hemddabral | 6:5dd31859cea3 | 73 | Status_t TSU104::TSU104_ConfigIT(void *init) { |
hemddabral | 6:5dd31859cea3 | 74 | |
hemddabral | 6:5dd31859cea3 | 75 | } |
hemddabral | 6:5dd31859cea3 | 76 | |
hemddabral | 6:5dd31859cea3 | 77 | static unsigned int TSU104_WindComp_Get_D2(void) { |
hemddabral | 6:5dd31859cea3 | 78 | } |
hemddabral | 6:5dd31859cea3 | 79 | |
hemddabral | 6:5dd31859cea3 | 80 | static unsigned int TSU104_WindComp_Get_D4(void) { |
hemddabral | 6:5dd31859cea3 | 81 | } |
hemddabral | 6:5dd31859cea3 | 82 | |
hemddabral | 6:5dd31859cea3 | 83 | static unsigned int TSU104_PhotoSensor_GetVoltage(PinName pin) { |
hemddabral | 6:5dd31859cea3 | 84 | } |
hemddabral | 6:5dd31859cea3 | 85 | |
hemddabral | 6:5dd31859cea3 | 86 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
hemddabral | 6:5dd31859cea3 | 87 |