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 accelero.h
bcostm 1:138e8076f348 4 * @author MCD Application Team
bcostm 1:138e8076f348 5 * @brief This header file contains the functions prototypes for the Accelerometer 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 __ACCELERO_H
bcostm 1:138e8076f348 22 #define __ACCELERO_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 ACCELERO
bcostm 1:138e8076f348 40 * @{
bcostm 1:138e8076f348 41 */
bcostm 1:138e8076f348 42
bcostm 1:138e8076f348 43 /** @defgroup ACCELERO_Exported_Types
bcostm 1:138e8076f348 44 * @{
bcostm 1:138e8076f348 45 */
bcostm 1:138e8076f348 46
bcostm 1:138e8076f348 47 /** @defgroup ACCELERO_Driver_structure Accelerometer Driver structure
bcostm 1:138e8076f348 48 * @{
bcostm 1:138e8076f348 49 */
bcostm 1:138e8076f348 50 typedef struct
bcostm 1:138e8076f348 51 {
bcostm 1:138e8076f348 52 void (*Init)(uint16_t);
bcostm 1:138e8076f348 53 void (*DeInit)(void);
bcostm 1:138e8076f348 54 uint8_t (*ReadID)(void);
bcostm 1:138e8076f348 55 void (*Reset)(void);
bcostm 2:87208512ab66 56 void (*LowPower)(uint16_t);
bcostm 1:138e8076f348 57 void (*ConfigIT)(void);
bcostm 1:138e8076f348 58 void (*EnableIT)(uint8_t);
bcostm 1:138e8076f348 59 void (*DisableIT)(uint8_t);
bcostm 1:138e8076f348 60 uint8_t (*ITStatus)(uint16_t);
bcostm 1:138e8076f348 61 void (*ClearIT)(void);
bcostm 1:138e8076f348 62 void (*FilterConfig)(uint8_t);
bcostm 1:138e8076f348 63 void (*FilterCmd)(uint8_t);
bcostm 1:138e8076f348 64 void (*GetXYZ)(int16_t *);
bcostm 1:138e8076f348 65 }ACCELERO_DrvTypeDef;
bcostm 1:138e8076f348 66 /**
bcostm 1:138e8076f348 67 * @}
bcostm 1:138e8076f348 68 */
bcostm 1:138e8076f348 69
bcostm 1:138e8076f348 70 /** @defgroup ACCELERO_Configuration_structure Accelerometer Configuration structure
bcostm 1:138e8076f348 71 * @{
bcostm 1:138e8076f348 72 */
bcostm 1:138e8076f348 73
bcostm 1:138e8076f348 74 /* ACCELERO struct */
bcostm 1:138e8076f348 75 typedef struct
bcostm 1:138e8076f348 76 {
bcostm 1:138e8076f348 77 uint8_t Power_Mode; /* Power-down/Normal Mode */
bcostm 1:138e8076f348 78 uint8_t AccOutput_DataRate; /* OUT data rate */
bcostm 1:138e8076f348 79 uint8_t Axes_Enable; /* Axes enable */
bcostm 1:138e8076f348 80 uint8_t High_Resolution; /* High Resolution enabling/disabling */
bcostm 1:138e8076f348 81 uint8_t BlockData_Update; /* Block Data Update */
bcostm 1:138e8076f348 82 uint8_t Endianness; /* Endian Data selection */
bcostm 1:138e8076f348 83 uint8_t AccFull_Scale; /* Full Scale selection */
bcostm 1:138e8076f348 84 uint8_t Communication_Mode;
bcostm 1:138e8076f348 85 }ACCELERO_InitTypeDef;
bcostm 1:138e8076f348 86
bcostm 1:138e8076f348 87 /* ACCELERO High Pass Filter struct */
bcostm 1:138e8076f348 88 typedef struct
bcostm 1:138e8076f348 89 {
bcostm 1:138e8076f348 90 uint8_t HighPassFilter_Mode_Selection; /* Internal filter mode */
bcostm 1:138e8076f348 91 uint8_t HighPassFilter_CutOff_Frequency; /* High pass filter cut-off frequency */
bcostm 1:138e8076f348 92 uint8_t HighPassFilter_AOI1; /* HPF_enabling/disabling for AOI function on interrupt 1 */
bcostm 1:138e8076f348 93 uint8_t HighPassFilter_AOI2; /* HPF_enabling/disabling for AOI function on interrupt 2 */
bcostm 1:138e8076f348 94 uint8_t HighPassFilter_Data_Sel;
bcostm 1:138e8076f348 95 uint8_t HighPassFilter_Stat;
bcostm 1:138e8076f348 96 }ACCELERO_FilterConfigTypeDef;
bcostm 1:138e8076f348 97
bcostm 1:138e8076f348 98 /**
bcostm 1:138e8076f348 99 * @}
bcostm 1:138e8076f348 100 */
bcostm 1:138e8076f348 101
bcostm 1:138e8076f348 102
bcostm 1:138e8076f348 103 /**
bcostm 1:138e8076f348 104 * @}
bcostm 1:138e8076f348 105 */
bcostm 1:138e8076f348 106
bcostm 1:138e8076f348 107 /**
bcostm 1:138e8076f348 108 * @}
bcostm 1:138e8076f348 109 */
bcostm 1:138e8076f348 110
bcostm 1:138e8076f348 111 /**
bcostm 1:138e8076f348 112 * @}
bcostm 1:138e8076f348 113 */
bcostm 1:138e8076f348 114
bcostm 1:138e8076f348 115 /**
bcostm 1:138e8076f348 116 * @}
bcostm 1:138e8076f348 117 */
bcostm 1:138e8076f348 118
bcostm 1:138e8076f348 119 #ifdef __cplusplus
bcostm 1:138e8076f348 120 }
bcostm 1:138e8076f348 121 #endif
bcostm 1:138e8076f348 122
bcostm 1:138e8076f348 123 #endif /* __ACCELERO_H */
bcostm 1:138e8076f348 124
bcostm 1:138e8076f348 125 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/