E&R S3 prime / BSP_DISCO_L476VG
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stm32l476g_discovery_gyroscope.h Source File

stm32l476g_discovery_gyroscope.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32l476g_discovery_gyroscope.h
00004   * @author  MCD Application Team
00005   * @brief   This file contains definitions for stm32l476g_discovery_gyroscope.c
00006   *          firmware driver.
00007   ******************************************************************************
00008   * @attention
00009   *
00010   * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
00011   * All rights reserved.</center></h2>
00012   *
00013   * This software component is licensed by ST under BSD 3-Clause license,
00014   * the "License"; You may not use this file except in compliance with the
00015   * License. You may obtain a copy of the License at:
00016   *                        opensource.org/licenses/BSD-3-Clause
00017   *
00018   ******************************************************************************
00019   */
00020 
00021 /* Define to prevent recursive inclusion -------------------------------------*/
00022 #ifndef __STM32L476G_DISCOVERY_GYROSCOPE_H
00023 #define __STM32L476G_DISCOVERY_GYROSCOPE_H
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 /* Includes ------------------------------------------------------------------*/
00030 #include "stm32l476g_discovery.h"
00031 /* Include Gyroscope component driver */
00032 #include "../Components/l3gd20/l3gd20.h"
00033 
00034 /** @addtogroup BSP
00035   * @{
00036   */
00037 
00038 /** @addtogroup STM32L476G_DISCOVERY
00039   * @{
00040   */
00041 
00042 /** @addtogroup STM32L476G_DISCOVERY_GYROSCOPE
00043   * @{
00044   */
00045 
00046 /** @defgroup STM32L476G_DISCOVERY_GYROSCOPE_Exported_Types Exported Types
00047   * @{
00048   */
00049 typedef enum
00050 {
00051   GYRO_OK = 0,
00052   GYRO_ERROR = 1,
00053   GYRO_TIMEOUT = 2
00054 }
00055 GYRO_StatusTypeDef;
00056 
00057 /**
00058   * @}
00059   */
00060 
00061 /** @defgroup STM32L476G_DISCOVERY_GYROSCOPE_Exported_Constants Exported Constants
00062   * @{
00063   */
00064 
00065 /**
00066   * @}
00067   */
00068 
00069 /** @defgroup STM32L476G_DISCOVERY_GYROSCOPE_Exported_Macros Exported Macros
00070   * @{
00071   */
00072 
00073 /**
00074   * @}
00075   */
00076 
00077 /** @defgroup STM32L476G_DISCOVERY_GYROSCOPE_Exported_Functions  Exported Functions
00078   * @{
00079   */
00080 /* Sensor Configuration Functions */
00081 uint8_t BSP_GYRO_Init(void);
00082 void    BSP_GYRO_DeInit(void);
00083 void    BSP_GYRO_LowPower(void);
00084 void    BSP_GYRO_Reset(void);
00085 uint8_t BSP_GYRO_ReadID(void);
00086 void    BSP_GYRO_ITConfig(GYRO_InterruptConfigTypeDef *pIntConfigStruct);
00087 void    BSP_GYRO_EnableIT(uint8_t IntPin);
00088 void    BSP_GYRO_DisableIT(uint8_t IntPin);
00089 void    BSP_GYRO_GetXYZ(float *pfData);
00090 
00091 /**
00092   * @}
00093   */
00094 
00095 /**
00096   * @}
00097   */
00098 
00099 /**
00100   * @}
00101   */
00102 
00103 /**
00104   * @}
00105   */
00106 
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110 
00111 #endif /* __STM32L476G_DISCOVERY_GYROSCOPE_H */
00112 
00113 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/