Contains the BSP driver for the B-L475E-IOT01 board.

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/

Committer:
jeromecoutant
Date:
Tue Sep 24 15:30:09 2019 +0200
Revision:
7:bfe8272ced90
Parent:
6:9dfa42666f03
Update BSP files with STM32Cube L4 V1.14.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 1:138e8076f348 1 /**
bcostm 1:138e8076f348 2 ******************************************************************************
bcostm 1:138e8076f348 3 * @file idd.h
bcostm 1:138e8076f348 4 * @author MCD Application Team
bcostm 1:138e8076f348 5 * @brief This file contains all the functions prototypes for the IDD driver.
bcostm 1:138e8076f348 6 ******************************************************************************
bcostm 1:138e8076f348 7 * @attention
bcostm 1:138e8076f348 8 *
jeromecoutant 7:bfe8272ced90 9 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
jeromecoutant 7:bfe8272ced90 10 * All rights reserved.</center></h2>
bcostm 1:138e8076f348 11 *
jeromecoutant 7:bfe8272ced90 12 * This software component is licensed by ST under BSD 3-Clause license,
jeromecoutant 7:bfe8272ced90 13 * the "License"; You may not use this file except in compliance with the
jeromecoutant 7:bfe8272ced90 14 * License. You may obtain a copy of the License at:
jeromecoutant 7:bfe8272ced90 15 * opensource.org/licenses/BSD-3-Clause
bcostm 1:138e8076f348 16 *
bcostm 1:138e8076f348 17 ******************************************************************************
bcostm 1:138e8076f348 18 */
bcostm 1:138e8076f348 19
bcostm 1:138e8076f348 20 /* Define to prevent recursive inclusion -------------------------------------*/
bcostm 1:138e8076f348 21 #ifndef __IDD_H
bcostm 1:138e8076f348 22 #define __IDD_H
bcostm 1:138e8076f348 23
bcostm 1:138e8076f348 24 #ifdef __cplusplus
bcostm 1:138e8076f348 25 extern "C" {
bcostm 1:138e8076f348 26 #endif
bcostm 1:138e8076f348 27
bcostm 1:138e8076f348 28 /* Includes ------------------------------------------------------------------*/
bcostm 1:138e8076f348 29 #include <stdint.h>
bcostm 1:138e8076f348 30
bcostm 1:138e8076f348 31 /** @addtogroup BSP
bcostm 1:138e8076f348 32 * @{
bcostm 1:138e8076f348 33 */
bcostm 1:138e8076f348 34
bcostm 1:138e8076f348 35 /** @addtogroup Components
bcostm 1:138e8076f348 36 * @{
bcostm 1:138e8076f348 37 */
bcostm 1:138e8076f348 38
bcostm 1:138e8076f348 39 /** @addtogroup IDD
bcostm 1:138e8076f348 40 * @{
bcostm 1:138e8076f348 41 */
bcostm 1:138e8076f348 42
bcostm 1:138e8076f348 43 /** @defgroup IDD_Exported_Types IDD Exported Types
bcostm 1:138e8076f348 44 * @{
bcostm 1:138e8076f348 45 */
bcostm 1:138e8076f348 46
bcostm 1:138e8076f348 47 /** @defgroup IDD_Config_structure IDD Configuration structure
bcostm 1:138e8076f348 48 * @{
bcostm 1:138e8076f348 49 */
bcostm 1:138e8076f348 50 typedef struct
bcostm 1:138e8076f348 51 {
bcostm 1:138e8076f348 52 uint16_t AmpliGain; /*!< Specifies ampli gain value
bcostm 1:138e8076f348 53 */
bcostm 1:138e8076f348 54 uint16_t VddMin; /*!< Specifies minimum MCU VDD can reach to protect MCU from reset
bcostm 1:138e8076f348 55 */
bcostm 1:138e8076f348 56 uint16_t Shunt0Value; /*!< Specifies value of Shunt 0 if existing
bcostm 1:138e8076f348 57 */
bcostm 1:138e8076f348 58 uint16_t Shunt1Value; /*!< Specifies value of Shunt 1 if existing
bcostm 1:138e8076f348 59 */
bcostm 1:138e8076f348 60 uint16_t Shunt2Value; /*!< Specifies value of Shunt 2 if existing
bcostm 1:138e8076f348 61 */
bcostm 1:138e8076f348 62 uint16_t Shunt3Value; /*!< Specifies value of Shunt 3 if existing
bcostm 1:138e8076f348 63 */
bcostm 1:138e8076f348 64 uint16_t Shunt4Value; /*!< Specifies value of Shunt 4 if existing
bcostm 1:138e8076f348 65 */
bcostm 1:138e8076f348 66 uint16_t Shunt0StabDelay; /*!< Specifies delay of Shunt 0 stabilization if existing
bcostm 1:138e8076f348 67 */
bcostm 1:138e8076f348 68 uint16_t Shunt1StabDelay; /*!< Specifies delay of Shunt 1 stabilization if existing
bcostm 1:138e8076f348 69 */
bcostm 1:138e8076f348 70 uint16_t Shunt2StabDelay; /*!< Specifies delay of Shunt 2 stabilization if existing
bcostm 1:138e8076f348 71 */
bcostm 1:138e8076f348 72 uint16_t Shunt3StabDelay; /*!< Specifies delay of Shunt 3 stabilization if existing
bcostm 1:138e8076f348 73 */
bcostm 1:138e8076f348 74 uint16_t Shunt4StabDelay; /*!< Specifies delay of Shunt 4 stabilization if existing
bcostm 1:138e8076f348 75 */
bcostm 1:138e8076f348 76 uint8_t ShuntNbOnBoard; /*!< Specifies number of shunts that are present on board
bcostm 1:138e8076f348 77 This parameter can be a value of @ref IDD_shunt_number */
bcostm 1:138e8076f348 78 uint8_t ShuntNbUsed; /*!< Specifies number of shunts used for measurement
bcostm 1:138e8076f348 79 This parameter can be a value of @ref IDD_shunt_number */
bcostm 1:138e8076f348 80 uint8_t VrefMeasurement; /*!< Specifies if Vref is automatically measured before each Idd measurement
bcostm 1:138e8076f348 81 This parameter can be a value of @ref IDD_Vref_Measurement */
bcostm 1:138e8076f348 82 uint8_t Calibration; /*!< Specifies if calibration is done before each Idd measurement
bcostm 1:138e8076f348 83 */
bcostm 1:138e8076f348 84 uint8_t PreDelayUnit; /*!< Specifies Pre delay unit
bcostm 1:138e8076f348 85 This parameter can be a value of @ref IDD_PreDelay */
bcostm 1:138e8076f348 86 uint8_t PreDelayValue; /*!< Specifies Pre delay value in selected unit
bcostm 1:138e8076f348 87 */
bcostm 1:138e8076f348 88 uint8_t MeasureNb; /*!< Specifies number of Measure to be performed
bcostm 1:138e8076f348 89 This parameter can be a value between 1 and 256 */
bcostm 1:138e8076f348 90 uint8_t DeltaDelayUnit; /*!< Specifies Delta delay unit
bcostm 1:138e8076f348 91 This parameter can be a value of @ref IDD_DeltaDelay */
bcostm 1:138e8076f348 92 uint8_t DeltaDelayValue; /*!< Specifies Delta delay between 2 measures
bcostm 1:138e8076f348 93 value can be between 1 and 128 */
bcostm 1:138e8076f348 94 }IDD_ConfigTypeDef;
bcostm 1:138e8076f348 95 /**
bcostm 1:138e8076f348 96 * @}
bcostm 1:138e8076f348 97 */
bcostm 1:138e8076f348 98
bcostm 1:138e8076f348 99 /** @defgroup IDD_Driver_structure IDD Driver structure
bcostm 1:138e8076f348 100 * @{
bcostm 1:138e8076f348 101 */
bcostm 1:138e8076f348 102 typedef struct
bcostm 1:138e8076f348 103 {
bcostm 1:138e8076f348 104 void (*Init)(uint16_t);
bcostm 1:138e8076f348 105 void (*DeInit)(uint16_t);
bcostm 1:138e8076f348 106 uint16_t (*ReadID)(uint16_t);
bcostm 1:138e8076f348 107 void (*Reset)(uint16_t);
bcostm 1:138e8076f348 108 void (*LowPower)(uint16_t);
bcostm 1:138e8076f348 109 void (*WakeUp)(uint16_t);
bcostm 1:138e8076f348 110 void (*Start)(uint16_t);
bcostm 1:138e8076f348 111 void (*Config)(uint16_t,IDD_ConfigTypeDef);
bcostm 1:138e8076f348 112 void (*GetValue)(uint16_t, uint32_t *);
bcostm 1:138e8076f348 113 void (*EnableIT)(uint16_t);
bcostm 1:138e8076f348 114 void (*ClearIT)(uint16_t);
bcostm 1:138e8076f348 115 uint8_t (*GetITStatus)(uint16_t);
bcostm 1:138e8076f348 116 void (*DisableIT)(uint16_t);
bcostm 1:138e8076f348 117 void (*ErrorEnableIT)(uint16_t);
bcostm 1:138e8076f348 118 void (*ErrorClearIT)(uint16_t);
bcostm 1:138e8076f348 119 uint8_t (*ErrorGetITStatus)(uint16_t);
bcostm 1:138e8076f348 120 void (*ErrorDisableIT)(uint16_t);
bcostm 1:138e8076f348 121 uint8_t (*ErrorGetSrc)(uint16_t);
bcostm 1:138e8076f348 122 uint8_t (*ErrorGetCode)(uint16_t);
bcostm 1:138e8076f348 123 }IDD_DrvTypeDef;
bcostm 1:138e8076f348 124 /**
bcostm 1:138e8076f348 125 * @}
bcostm 1:138e8076f348 126 */
bcostm 1:138e8076f348 127
bcostm 1:138e8076f348 128 /**
bcostm 1:138e8076f348 129 * @}
bcostm 1:138e8076f348 130 */
bcostm 1:138e8076f348 131
bcostm 1:138e8076f348 132 /**
bcostm 1:138e8076f348 133 * @}
bcostm 1:138e8076f348 134 */
bcostm 1:138e8076f348 135
bcostm 1:138e8076f348 136 /**
bcostm 1:138e8076f348 137 * @}
bcostm 1:138e8076f348 138 */
bcostm 1:138e8076f348 139
bcostm 1:138e8076f348 140 /**
bcostm 1:138e8076f348 141 * @}
bcostm 1:138e8076f348 142 */
bcostm 1:138e8076f348 143
bcostm 1:138e8076f348 144 #ifdef __cplusplus
bcostm 1:138e8076f348 145 }
bcostm 1:138e8076f348 146 #endif
bcostm 1:138e8076f348 147
bcostm 1:138e8076f348 148 #endif /* __IDD_H */
bcostm 1:138e8076f348 149
bcostm 1:138e8076f348 150 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/