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.
Dependents: HelloWorld_IPS02A1
Fork of X_NUCLEO_IPS02A1 by
VPS2535H_def.h
00001 /** 00002 ******************************************************************************* 00003 * @file VPS2535H_def.h 00004 * @author ADG 00005 * @version V1.0.1 00006 * @date 01-July-2016 00007 * @brief VPS235H1 module driver. 00008 * This file provides firmware functions to manage the following 00009 * functionalities of the VPS235H1 power switch: 00010 * + Initialization and de-initialization functions 00011 * + Diagnostic Sense Pin Configuration 00012 * + Get Sense Diagnostic Values 00013 ******************************************************************************* 00014 * @attention 00015 * 00016 * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> 00017 * 00018 * Redistribution and use in source and binary forms, with or without modification, 00019 * are permitted provided that the following conditions are met: 00020 * 1. Redistributions of source code must retain the above copyright notice, 00021 * this list of conditions and the following disclaimer. 00022 * 2. Redistributions in binary form must reproduce the above copyright notice, 00023 * this list of conditions and the following disclaimer in the documentation 00024 * and/or other materials provided with the distribution. 00025 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00026 * may be used to endorse or promote products derived from this software 00027 * without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00030 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00031 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00032 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00033 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00034 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00035 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00036 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00037 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00038 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 * 00040 ****************************************************************************** 00041 */ 00042 00043 00044 /* Define to prevent recursive inclusion -------------------------------------*/ 00045 00046 #ifndef __VPS2535H_H 00047 #define __VPS2535H_H 00048 00049 00050 /* Includes ------------------------------------------------------------------*/ 00051 00052 #include "IPS_def.h" 00053 00054 00055 /* Definitions ---------------------------------------------------------------*/ 00056 00057 /* Number of channels */ 00058 #define NUM_CHANNELS 2 00059 00060 /* Channel 0 */ 00061 #define CHANNEL_1 1 00062 /* Channel 1 */ 00063 #define CHANNEL_2 2 00064 00065 /* V-Sense Temperature Typical value at 25 degree */ 00066 #define V_SENSE_TC_TYPICAL 2.070 00067 00068 /* Vcc transfer function */ 00069 #define VCC_TRANSFER_FUNCT(sense) ((sense)*4) 00070 /* Current K factor */ 00071 #define K 3500 00072 00073 00074 #endif /* __VPS2535H_H */ 00075 00076 00077 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Sat Jul 16 2022 04:19:39 by
1.7.2

X-NUCLEO-IPS02A1 - 24V Intelligent power switch expansion board