mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.

Dependents:   HelloWorld_IKA01A1

Fork of X_NUCLEO_IKA01A1 by ST Expansion SW Team

Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.

Committer:
hemddabral
Date:
Wed Feb 24 12:16:21 2016 +0000
Revision:
0:8d2ff26a1946
first version of IKA01A1 mbed library;

Who changed what in which revision?

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