Select one of the symbols to view example projects that use it.
 
Outline
#define __STM32F401_DISCOVERY_GYROSCOPE_H
#include "stm32f401_discovery.h"
#include "../Components/l3gd20/l3gd20.h"
GYRO_StatusTypeDef
BSP_GYRO_Init();
BSP_GYRO_Reset();
BSP_GYRO_ReadID();
BSP_GYRO_ITConfig(GYRO_InterruptConfigTypeDef *);
BSP_GYRO_EnableIT(uint8_t);
BSP_GYRO_DisableIT(uint8_t);
BSP_GYRO_GetXYZ(float *);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTM32F401-Discoverystm32f401_discovery_gyroscope.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file stm32f401_discovery_gyroscope.h * @author MCD Application Team * @brief This file contains definitions for stm32f401_discovery_gyroscope.c * firmware driver. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F401_DISCOVERY_GYROSCOPE_H #define __STM32F401_DISCOVERY_GYROSCOPE_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f401_discovery.h" /* Include Gyroscope component driver */ #include "../Components/l3gd20/l3gd20.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup STM32F401_DISCOVERY * @{ *//* ... */ /** @defgroup STM32F401_DISCOVERY_GYROSCOPE STM32F401 DISCOVERY GYROSCOPE * @{ *//* ... */ /** @defgroup STM32F401_DISCOVERY_GYROSCOPE_Exported_Types STM32F401 DISCOVERY GYROSCOPE Exported Types * @{ *//* ... */ typedef enum { GYRO_OK = 0, GYRO_ERROR = 1, GYRO_TIMEOUT = 2 ...}GYRO_StatusTypeDef; /** * @} *//* ... */ /** @defgroup STM32F401_DISCOVERY_GYROSCOPE_Exported_Constants STM32F401 DISCOVERY GYROSCOPE Exported Constants * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup STM32F401_DISCOVERY_GYROSCOPE_Exported_Macros STM32F401 DISCOVERY GYROSCOPE Exported Macros * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup STM32F401_DISCOVERY_GYROSCOPE_Exported_Functions STM32F401 DISCOVERY GYROSCOPE Exported Functions * @{ *//* ... */ /* Gyroscope Functions */ uint8_t BSP_GYRO_Init(void); void BSP_GYRO_Reset(void); uint8_t BSP_GYRO_ReadID(void); void BSP_GYRO_ITConfig(GYRO_InterruptConfigTypeDef *pIntConfigStruct); void BSP_GYRO_EnableIT(uint8_t IntPin); void BSP_GYRO_DisableIT(uint8_t IntPin); void BSP_GYRO_GetXYZ(float *pfData); /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __STM32F401_DISCOVERY_GYROSCOPE_H */