mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
TSZ124_def.h
00001 /** 00002 ****************************************************************************** 00003 * @file TSZ124_def.h 00004 * @author Central Labs 00005 * @version 1.0.0 00006 * @date 11-February-2016 00007 * @brief Portable architecture for TSZ124 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00012 * 00013 * Redistribution and use in source and binary forms, with or without modification, 00014 * are permitted provided that the following conditions are met: 00015 * 1. Redistributions of source code must retain the above copyright notice, 00016 * this list of conditions and the following disclaimer. 00017 * 2. Redistributions in binary form must reproduce the above copyright notice, 00018 * this list of conditions and the following disclaimer in the documentation 00019 * and/or other materials provided with the distribution. 00020 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00021 * may be used to endorse or promote products derived from this software 00022 * without specific prior written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00027 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00028 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 ****************************************************************************** 00036 */ 00037 00038 00039 /* Define to prevent recursive inclusion -------------------------------------*/ 00040 00041 #ifndef __TSZ124_H 00042 #define __TSZ124_H 00043 00044 #ifdef __cplusplus 00045 extern "C" { 00046 #endif 00047 00048 00049 /* Includes ------------------------------------------------------------------*/ 00050 00051 /* ACTION --------------------------------------------------------------------* 00052 * Include here interface specific header files. * 00053 *----------------------------------------------------------------------------*/ 00054 #include "../Common/instrumentation_amp_def.h" 00055 00056 00057 /* Definitions ---------------------------------------------------------------*/ 00058 00059 /** @addtogroup BSP 00060 * @{ 00061 */ 00062 00063 /** @addtogroup Components 00064 * @{ 00065 */ 00066 00067 /** @addtogroup tsz124 00068 * @{ 00069 */ 00070 00071 /** @defgroup tsz124_Exported_Defines tsz124_Exported_Defines 00072 * @{ 00073 */ 00074 #ifndef NULL 00075 #define NULL (void *) 0 00076 #endif 00077 00078 /** 00079 * @brief Device Address 00080 */ 00081 #define TSZ124_ADDRESS (0x10) 00082 00083 /* ACTION --------------------------------------------------------------------* 00084 * Put here the component's registers' addresses. * 00085 *----------------------------------------------------------------------------*/ 00086 00087 /** 00088 * @brief Device identification register. 00089 * \code 00090 * Read 00091 * Default value: 0xXX 00092 * 7:0 This read-only register contains the device identifier. 00093 * \endcode 00094 */ 00095 #define TSZ124_WHO_AM_I_ADDR (0x11) 00096 00097 /** 00098 * @brief Device Identifier. Default value of the WHO_AM_I register. 00099 */ 00100 #define I_AM_TSZ124 ((uint8_t) (0x24)) 00101 00102 extern status_t TSZ124_Read_Pin_A1(); 00103 extern status_t TSZ124_Read_Pin_A2(); 00104 00105 #ifdef __cplusplus 00106 } 00107 #endif 00108 00109 #endif /* __TSZ124_H */ 00110 00111 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 00112
Generated on Tue Jul 12 2022 17:01:48 by 1.7.2