ST / BSP_B-L475E-IOT01

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stm32l475e_iot01_accelero.h Source File

stm32l475e_iot01_accelero.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32l475e_iot01_accelero.h
00004   * @author  MCD Application Team
00005   * @brief   This file provides a set of functions needed to manage the accelerometer sensor
00006   ******************************************************************************
00007   * @attention
00008   *
00009   * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
00010   * All rights reserved.</center></h2>
00011   *
00012   * This software component is licensed by ST under BSD 3-Clause license,
00013   * the "License"; You may not use this file except in compliance with the
00014   * License. You may obtain a copy of the License at:
00015   *                        opensource.org/licenses/BSD-3-Clause
00016   *
00017   ******************************************************************************
00018   */
00019 
00020 /* Define to prevent recursive inclusion -------------------------------------*/
00021 #ifndef __STM32L475E_IOT01_ACCELERO_H
00022 #define __STM32L475E_IOT01_ACCELERO_H
00023 
00024 #ifdef __cplusplus
00025  extern "C" {
00026 #endif
00027 
00028 /* Includes ------------------------------------------------------------------*/
00029 #include "stm32l475e_iot01.h"
00030 /* Include Accelero component driver */
00031 #include "../Components/lsm6dsl/lsm6dsl.h"
00032    
00033 /** @addtogroup BSP
00034   * @{
00035   */
00036 
00037 /** @addtogroup STM32L475E_IOT01
00038   * @{
00039   */
00040       
00041 /** @addtogroup STM32L475E_IOT01_ACCELERO
00042   * @{
00043   */ 
00044    
00045 /** @defgroup STM32L475_DISCOVERY_ACCELERO_Exported_Types ACCELERO Exported Types
00046   * @{
00047   */
00048 typedef enum 
00049 {
00050   ACCELERO_OK = 0,
00051   ACCELERO_ERROR = 1,
00052   ACCELERO_TIMEOUT = 2
00053 } 
00054 ACCELERO_StatusTypeDef;
00055 
00056 /**
00057   * @}
00058   */
00059 
00060 /** @defgroup STM32L475E_IOT01_ACCELERO_Exported_Functions ACCELERO Exported Functions
00061   * @{
00062   */
00063 /* Sensor Configuration Functions */
00064 ACCELERO_StatusTypeDef BSP_ACCELERO_Init(void);
00065 void BSP_ACCELERO_DeInit(void);
00066 void BSP_ACCELERO_LowPower(uint16_t status); /* 0 Means Disable Low Power Mode, otherwise Low Power Mode is enabled */
00067 void BSP_ACCELERO_AccGetXYZ(int16_t *pDataXYZ);
00068 /**
00069   * @}
00070   */
00071 
00072 /**
00073   * @}
00074   */
00075 
00076 /**
00077   * @}
00078   */
00079 
00080 /**
00081   * @}
00082   */
00083 #ifdef __cplusplus
00084 }
00085 #endif
00086 
00087 #endif /* __STM32L475E_IOT01_ACCELERO_H */
00088 
00089 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/