STM32L476G-Discovery board drivers V1.0.0

Dependents:   DiscoLogger DISCO_L476VG_GlassLCD DISCO_L476VG_MicrophoneRecorder DISCO_L476VG_UART ... more

Committer:
jeromecoutant
Date:
Tue Sep 24 18:00:58 2019 +0200
Revision:
5:4943b15cce9f
Parent:
1:917af0ca86df
Update BSP files with CubeL4 V1.14.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jerome Coutant 1:917af0ca86df 1 /**
Jerome Coutant 1:917af0ca86df 2 ******************************************************************************
Jerome Coutant 1:917af0ca86df 3 * @file l3gd20.h
Jerome Coutant 1:917af0ca86df 4 * @author MCD Application Team
Jerome Coutant 1:917af0ca86df 5 * @brief This file contains all the functions prototypes for the l3gd20.c driver.
Jerome Coutant 1:917af0ca86df 6 ******************************************************************************
Jerome Coutant 1:917af0ca86df 7 * @attention
Jerome Coutant 1:917af0ca86df 8 *
jeromecoutant 5:4943b15cce9f 9 * <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
jeromecoutant 5:4943b15cce9f 10 * All rights reserved.</center></h2>
Jerome Coutant 1:917af0ca86df 11 *
jeromecoutant 5:4943b15cce9f 12 * This software component is licensed by ST under BSD 3-Clause license,
jeromecoutant 5:4943b15cce9f 13 * the "License"; You may not use this file except in compliance with the
jeromecoutant 5:4943b15cce9f 14 * License. You may obtain a copy of the License at:
jeromecoutant 5:4943b15cce9f 15 * opensource.org/licenses/BSD-3-Clause
Jerome Coutant 1:917af0ca86df 16 *
Jerome Coutant 1:917af0ca86df 17 ******************************************************************************
Jerome Coutant 1:917af0ca86df 18 */
Jerome Coutant 1:917af0ca86df 19
Jerome Coutant 1:917af0ca86df 20
Jerome Coutant 1:917af0ca86df 21 /* Define to prevent recursive inclusion -------------------------------------*/
Jerome Coutant 1:917af0ca86df 22 #ifndef __L3GD20_H
Jerome Coutant 1:917af0ca86df 23 #define __L3GD20_H
Jerome Coutant 1:917af0ca86df 24
Jerome Coutant 1:917af0ca86df 25 #ifdef __cplusplus
Jerome Coutant 1:917af0ca86df 26 extern "C" {
Jerome Coutant 1:917af0ca86df 27 #endif
Jerome Coutant 1:917af0ca86df 28
Jerome Coutant 1:917af0ca86df 29 /* Includes ------------------------------------------------------------------*/
Jerome Coutant 1:917af0ca86df 30 #include "../Common/gyro.h"
Jerome Coutant 1:917af0ca86df 31
Jerome Coutant 1:917af0ca86df 32 /** @addtogroup BSP
Jerome Coutant 1:917af0ca86df 33 * @{
Jerome Coutant 1:917af0ca86df 34 */
Jerome Coutant 1:917af0ca86df 35
Jerome Coutant 1:917af0ca86df 36 /** @addtogroup Components
Jerome Coutant 1:917af0ca86df 37 * @{
Jerome Coutant 1:917af0ca86df 38 */
Jerome Coutant 1:917af0ca86df 39
Jerome Coutant 1:917af0ca86df 40 /** @addtogroup L3GD20
Jerome Coutant 1:917af0ca86df 41 * @{
Jerome Coutant 1:917af0ca86df 42 */
Jerome Coutant 1:917af0ca86df 43
Jerome Coutant 1:917af0ca86df 44 /** @defgroup L3GD20_Exported_Constants
Jerome Coutant 1:917af0ca86df 45 * @{
Jerome Coutant 1:917af0ca86df 46 */
Jerome Coutant 1:917af0ca86df 47
Jerome Coutant 1:917af0ca86df 48 /******************************************************************************/
Jerome Coutant 1:917af0ca86df 49 /*************************** START REGISTER MAPPING **************************/
Jerome Coutant 1:917af0ca86df 50 /******************************************************************************/
Jerome Coutant 1:917af0ca86df 51 #define L3GD20_WHO_AM_I_ADDR 0x0F /* device identification register */
Jerome Coutant 1:917af0ca86df 52 #define L3GD20_CTRL_REG1_ADDR 0x20 /* Control register 1 */
Jerome Coutant 1:917af0ca86df 53 #define L3GD20_CTRL_REG2_ADDR 0x21 /* Control register 2 */
Jerome Coutant 1:917af0ca86df 54 #define L3GD20_CTRL_REG3_ADDR 0x22 /* Control register 3 */
Jerome Coutant 1:917af0ca86df 55 #define L3GD20_CTRL_REG4_ADDR 0x23 /* Control register 4 */
Jerome Coutant 1:917af0ca86df 56 #define L3GD20_CTRL_REG5_ADDR 0x24 /* Control register 5 */
Jerome Coutant 1:917af0ca86df 57 #define L3GD20_REFERENCE_REG_ADDR 0x25 /* Reference register */
Jerome Coutant 1:917af0ca86df 58 #define L3GD20_OUT_TEMP_ADDR 0x26 /* Out temp register */
Jerome Coutant 1:917af0ca86df 59 #define L3GD20_STATUS_REG_ADDR 0x27 /* Status register */
Jerome Coutant 1:917af0ca86df 60 #define L3GD20_OUT_X_L_ADDR 0x28 /* Output Register X */
Jerome Coutant 1:917af0ca86df 61 #define L3GD20_OUT_X_H_ADDR 0x29 /* Output Register X */
Jerome Coutant 1:917af0ca86df 62 #define L3GD20_OUT_Y_L_ADDR 0x2A /* Output Register Y */
Jerome Coutant 1:917af0ca86df 63 #define L3GD20_OUT_Y_H_ADDR 0x2B /* Output Register Y */
Jerome Coutant 1:917af0ca86df 64 #define L3GD20_OUT_Z_L_ADDR 0x2C /* Output Register Z */
Jerome Coutant 1:917af0ca86df 65 #define L3GD20_OUT_Z_H_ADDR 0x2D /* Output Register Z */
Jerome Coutant 1:917af0ca86df 66 #define L3GD20_FIFO_CTRL_REG_ADDR 0x2E /* Fifo control Register */
Jerome Coutant 1:917af0ca86df 67 #define L3GD20_FIFO_SRC_REG_ADDR 0x2F /* Fifo src Register */
Jerome Coutant 1:917af0ca86df 68
Jerome Coutant 1:917af0ca86df 69 #define L3GD20_INT1_CFG_ADDR 0x30 /* Interrupt 1 configuration Register */
Jerome Coutant 1:917af0ca86df 70 #define L3GD20_INT1_SRC_ADDR 0x31 /* Interrupt 1 source Register */
Jerome Coutant 1:917af0ca86df 71 #define L3GD20_INT1_TSH_XH_ADDR 0x32 /* Interrupt 1 Threshold X register */
Jerome Coutant 1:917af0ca86df 72 #define L3GD20_INT1_TSH_XL_ADDR 0x33 /* Interrupt 1 Threshold X register */
Jerome Coutant 1:917af0ca86df 73 #define L3GD20_INT1_TSH_YH_ADDR 0x34 /* Interrupt 1 Threshold Y register */
Jerome Coutant 1:917af0ca86df 74 #define L3GD20_INT1_TSH_YL_ADDR 0x35 /* Interrupt 1 Threshold Y register */
Jerome Coutant 1:917af0ca86df 75 #define L3GD20_INT1_TSH_ZH_ADDR 0x36 /* Interrupt 1 Threshold Z register */
Jerome Coutant 1:917af0ca86df 76 #define L3GD20_INT1_TSH_ZL_ADDR 0x37 /* Interrupt 1 Threshold Z register */
Jerome Coutant 1:917af0ca86df 77 #define L3GD20_INT1_DURATION_ADDR 0x38 /* Interrupt 1 DURATION register */
Jerome Coutant 1:917af0ca86df 78
Jerome Coutant 1:917af0ca86df 79 /******************************************************************************/
Jerome Coutant 1:917af0ca86df 80 /**************************** END REGISTER MAPPING ***************************/
Jerome Coutant 1:917af0ca86df 81 /******************************************************************************/
Jerome Coutant 1:917af0ca86df 82
Jerome Coutant 1:917af0ca86df 83 #define I_AM_L3GD20 ((uint8_t)0xD4)
Jerome Coutant 1:917af0ca86df 84 #define I_AM_L3GD20_TR ((uint8_t)0xD5)
Jerome Coutant 1:917af0ca86df 85
Jerome Coutant 1:917af0ca86df 86 /** @defgroup Power_Mode_selection
Jerome Coutant 1:917af0ca86df 87 * @{
Jerome Coutant 1:917af0ca86df 88 */
Jerome Coutant 1:917af0ca86df 89 #define L3GD20_MODE_POWERDOWN ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 90 #define L3GD20_MODE_ACTIVE ((uint8_t)0x08)
Jerome Coutant 1:917af0ca86df 91 /**
Jerome Coutant 1:917af0ca86df 92 * @}
Jerome Coutant 1:917af0ca86df 93 */
Jerome Coutant 1:917af0ca86df 94
Jerome Coutant 1:917af0ca86df 95 /** @defgroup OutPut_DataRate_Selection
Jerome Coutant 1:917af0ca86df 96 * @{
Jerome Coutant 1:917af0ca86df 97 */
Jerome Coutant 1:917af0ca86df 98 #define L3GD20_OUTPUT_DATARATE_1 ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 99 #define L3GD20_OUTPUT_DATARATE_2 ((uint8_t)0x40)
Jerome Coutant 1:917af0ca86df 100 #define L3GD20_OUTPUT_DATARATE_3 ((uint8_t)0x80)
Jerome Coutant 1:917af0ca86df 101 #define L3GD20_OUTPUT_DATARATE_4 ((uint8_t)0xC0)
Jerome Coutant 1:917af0ca86df 102 /**
Jerome Coutant 1:917af0ca86df 103 * @}
Jerome Coutant 1:917af0ca86df 104 */
Jerome Coutant 1:917af0ca86df 105
Jerome Coutant 1:917af0ca86df 106 /** @defgroup Axes_Selection
Jerome Coutant 1:917af0ca86df 107 * @{
Jerome Coutant 1:917af0ca86df 108 */
Jerome Coutant 1:917af0ca86df 109 #define L3GD20_X_ENABLE ((uint8_t)0x02)
Jerome Coutant 1:917af0ca86df 110 #define L3GD20_Y_ENABLE ((uint8_t)0x01)
Jerome Coutant 1:917af0ca86df 111 #define L3GD20_Z_ENABLE ((uint8_t)0x04)
Jerome Coutant 1:917af0ca86df 112 #define L3GD20_AXES_ENABLE ((uint8_t)0x07)
Jerome Coutant 1:917af0ca86df 113 #define L3GD20_AXES_DISABLE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 114 /**
Jerome Coutant 1:917af0ca86df 115 * @}
Jerome Coutant 1:917af0ca86df 116 */
Jerome Coutant 1:917af0ca86df 117
Jerome Coutant 1:917af0ca86df 118 /** @defgroup Bandwidth_Selection
Jerome Coutant 1:917af0ca86df 119 * @{
Jerome Coutant 1:917af0ca86df 120 */
Jerome Coutant 1:917af0ca86df 121 #define L3GD20_BANDWIDTH_1 ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 122 #define L3GD20_BANDWIDTH_2 ((uint8_t)0x10)
Jerome Coutant 1:917af0ca86df 123 #define L3GD20_BANDWIDTH_3 ((uint8_t)0x20)
Jerome Coutant 1:917af0ca86df 124 #define L3GD20_BANDWIDTH_4 ((uint8_t)0x30)
Jerome Coutant 1:917af0ca86df 125 /**
Jerome Coutant 1:917af0ca86df 126 * @}
Jerome Coutant 1:917af0ca86df 127 */
Jerome Coutant 1:917af0ca86df 128
Jerome Coutant 1:917af0ca86df 129 /** @defgroup Full_Scale_Selection
Jerome Coutant 1:917af0ca86df 130 * @{
Jerome Coutant 1:917af0ca86df 131 */
Jerome Coutant 1:917af0ca86df 132 #define L3GD20_FULLSCALE_250 ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 133 #define L3GD20_FULLSCALE_500 ((uint8_t)0x10)
Jerome Coutant 1:917af0ca86df 134 #define L3GD20_FULLSCALE_2000 ((uint8_t)0x20)
Jerome Coutant 1:917af0ca86df 135 #define L3GD20_FULLSCALE_SELECTION ((uint8_t)0x30)
Jerome Coutant 1:917af0ca86df 136 /**
Jerome Coutant 1:917af0ca86df 137 * @}
Jerome Coutant 1:917af0ca86df 138 */
Jerome Coutant 1:917af0ca86df 139
Jerome Coutant 1:917af0ca86df 140 /** @defgroup Full_Scale_Sensitivity
Jerome Coutant 1:917af0ca86df 141 * @{
Jerome Coutant 1:917af0ca86df 142 */
Jerome Coutant 1:917af0ca86df 143 #define L3GD20_SENSITIVITY_250DPS ((float)8.75f) /*!< gyroscope sensitivity with 250 dps full scale [DPS/LSB] */
Jerome Coutant 1:917af0ca86df 144 #define L3GD20_SENSITIVITY_500DPS ((float)17.50f) /*!< gyroscope sensitivity with 500 dps full scale [DPS/LSB] */
Jerome Coutant 1:917af0ca86df 145 #define L3GD20_SENSITIVITY_2000DPS ((float)70.00f) /*!< gyroscope sensitivity with 2000 dps full scale [DPS/LSB] */
Jerome Coutant 1:917af0ca86df 146 /**
Jerome Coutant 1:917af0ca86df 147 * @}
Jerome Coutant 1:917af0ca86df 148 */
Jerome Coutant 1:917af0ca86df 149
Jerome Coutant 1:917af0ca86df 150
Jerome Coutant 1:917af0ca86df 151 /** @defgroup Block_Data_Update
Jerome Coutant 1:917af0ca86df 152 * @{
Jerome Coutant 1:917af0ca86df 153 */
Jerome Coutant 1:917af0ca86df 154 #define L3GD20_BlockDataUpdate_Continous ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 155 #define L3GD20_BlockDataUpdate_Single ((uint8_t)0x80)
Jerome Coutant 1:917af0ca86df 156 /**
Jerome Coutant 1:917af0ca86df 157 * @}
Jerome Coutant 1:917af0ca86df 158 */
Jerome Coutant 1:917af0ca86df 159
Jerome Coutant 1:917af0ca86df 160 /** @defgroup Endian_Data_selection
Jerome Coutant 1:917af0ca86df 161 * @{
Jerome Coutant 1:917af0ca86df 162 */
Jerome Coutant 1:917af0ca86df 163 #define L3GD20_BLE_LSB ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 164 #define L3GD20_BLE_MSB ((uint8_t)0x40)
Jerome Coutant 1:917af0ca86df 165 /**
Jerome Coutant 1:917af0ca86df 166 * @}
Jerome Coutant 1:917af0ca86df 167 */
Jerome Coutant 1:917af0ca86df 168
Jerome Coutant 1:917af0ca86df 169 /** @defgroup High_Pass_Filter_status
Jerome Coutant 1:917af0ca86df 170 * @{
Jerome Coutant 1:917af0ca86df 171 */
Jerome Coutant 1:917af0ca86df 172 #define L3GD20_HIGHPASSFILTER_DISABLE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 173 #define L3GD20_HIGHPASSFILTER_ENABLE ((uint8_t)0x10)
Jerome Coutant 1:917af0ca86df 174 /**
Jerome Coutant 1:917af0ca86df 175 * @}
Jerome Coutant 1:917af0ca86df 176 */
Jerome Coutant 1:917af0ca86df 177
Jerome Coutant 1:917af0ca86df 178 /** @defgroup INT1_INT2_selection
Jerome Coutant 1:917af0ca86df 179 * @{
Jerome Coutant 1:917af0ca86df 180 */
Jerome Coutant 1:917af0ca86df 181 #define L3GD20_INT1 ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 182 #define L3GD20_INT2 ((uint8_t)0x01)
Jerome Coutant 1:917af0ca86df 183 /**
Jerome Coutant 1:917af0ca86df 184 * @}
Jerome Coutant 1:917af0ca86df 185 */
Jerome Coutant 1:917af0ca86df 186
Jerome Coutant 1:917af0ca86df 187 /** @defgroup INT1_Interrupt_status
Jerome Coutant 1:917af0ca86df 188 * @{
Jerome Coutant 1:917af0ca86df 189 */
Jerome Coutant 1:917af0ca86df 190 #define L3GD20_INT1INTERRUPT_DISABLE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 191 #define L3GD20_INT1INTERRUPT_ENABLE ((uint8_t)0x80)
Jerome Coutant 1:917af0ca86df 192 /**
Jerome Coutant 1:917af0ca86df 193 * @}
Jerome Coutant 1:917af0ca86df 194 */
Jerome Coutant 1:917af0ca86df 195
Jerome Coutant 1:917af0ca86df 196 /** @defgroup INT2_Interrupt_status
Jerome Coutant 1:917af0ca86df 197 * @{
Jerome Coutant 1:917af0ca86df 198 */
Jerome Coutant 1:917af0ca86df 199 #define L3GD20_INT2INTERRUPT_DISABLE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 200 #define L3GD20_INT2INTERRUPT_ENABLE ((uint8_t)0x08)
Jerome Coutant 1:917af0ca86df 201 /**
Jerome Coutant 1:917af0ca86df 202 * @}
Jerome Coutant 1:917af0ca86df 203 */
Jerome Coutant 1:917af0ca86df 204
Jerome Coutant 1:917af0ca86df 205 /** @defgroup INT1_Interrupt_ActiveEdge
Jerome Coutant 1:917af0ca86df 206 * @{
Jerome Coutant 1:917af0ca86df 207 */
Jerome Coutant 1:917af0ca86df 208 #define L3GD20_INT1INTERRUPT_LOW_EDGE ((uint8_t)0x20)
Jerome Coutant 1:917af0ca86df 209 #define L3GD20_INT1INTERRUPT_HIGH_EDGE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 210 /**
Jerome Coutant 1:917af0ca86df 211 * @}
Jerome Coutant 1:917af0ca86df 212 */
Jerome Coutant 1:917af0ca86df 213
Jerome Coutant 1:917af0ca86df 214 /** @defgroup Boot_Mode_selection
Jerome Coutant 1:917af0ca86df 215 * @{
Jerome Coutant 1:917af0ca86df 216 */
Jerome Coutant 1:917af0ca86df 217 #define L3GD20_BOOT_NORMALMODE ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 218 #define L3GD20_BOOT_REBOOTMEMORY ((uint8_t)0x80)
Jerome Coutant 1:917af0ca86df 219 /**
Jerome Coutant 1:917af0ca86df 220 * @}
Jerome Coutant 1:917af0ca86df 221 */
Jerome Coutant 1:917af0ca86df 222
Jerome Coutant 1:917af0ca86df 223 /** @defgroup High_Pass_Filter_Mode
Jerome Coutant 1:917af0ca86df 224 * @{
Jerome Coutant 1:917af0ca86df 225 */
Jerome Coutant 1:917af0ca86df 226 #define L3GD20_HPM_NORMAL_MODE_RES ((uint8_t)0x00)
Jerome Coutant 1:917af0ca86df 227 #define L3GD20_HPM_REF_SIGNAL ((uint8_t)0x10)
Jerome Coutant 1:917af0ca86df 228 #define L3GD20_HPM_NORMAL_MODE ((uint8_t)0x20)
Jerome Coutant 1:917af0ca86df 229 #define L3GD20_HPM_AUTORESET_INT ((uint8_t)0x30)
Jerome Coutant 1:917af0ca86df 230 /**
Jerome Coutant 1:917af0ca86df 231 * @}
Jerome Coutant 1:917af0ca86df 232 */
Jerome Coutant 1:917af0ca86df 233
Jerome Coutant 1:917af0ca86df 234 /** @defgroup High_Pass_CUT OFF_Frequency
Jerome Coutant 1:917af0ca86df 235 * @{
Jerome Coutant 1:917af0ca86df 236 */
Jerome Coutant 1:917af0ca86df 237 #define L3GD20_HPFCF_0 0x00
Jerome Coutant 1:917af0ca86df 238 #define L3GD20_HPFCF_1 0x01
Jerome Coutant 1:917af0ca86df 239 #define L3GD20_HPFCF_2 0x02
Jerome Coutant 1:917af0ca86df 240 #define L3GD20_HPFCF_3 0x03
Jerome Coutant 1:917af0ca86df 241 #define L3GD20_HPFCF_4 0x04
Jerome Coutant 1:917af0ca86df 242 #define L3GD20_HPFCF_5 0x05
Jerome Coutant 1:917af0ca86df 243 #define L3GD20_HPFCF_6 0x06
Jerome Coutant 1:917af0ca86df 244 #define L3GD20_HPFCF_7 0x07
Jerome Coutant 1:917af0ca86df 245 #define L3GD20_HPFCF_8 0x08
Jerome Coutant 1:917af0ca86df 246 #define L3GD20_HPFCF_9 0x09
Jerome Coutant 1:917af0ca86df 247 /**
Jerome Coutant 1:917af0ca86df 248 * @}
Jerome Coutant 1:917af0ca86df 249 */
Jerome Coutant 1:917af0ca86df 250
Jerome Coutant 1:917af0ca86df 251 /**
Jerome Coutant 1:917af0ca86df 252 * @}
Jerome Coutant 1:917af0ca86df 253 */
Jerome Coutant 1:917af0ca86df 254 /** @defgroup L3GD20_Exported_Functions
Jerome Coutant 1:917af0ca86df 255 * @{
Jerome Coutant 1:917af0ca86df 256 */
Jerome Coutant 1:917af0ca86df 257 /* Sensor Configuration Functions */
Jerome Coutant 1:917af0ca86df 258 void L3GD20_Init(uint16_t InitStruct);
Jerome Coutant 1:917af0ca86df 259 void L3GD20_DeInit(void);
Jerome Coutant 1:917af0ca86df 260 void L3GD20_LowPower(uint16_t InitStruct);
Jerome Coutant 1:917af0ca86df 261 uint8_t L3GD20_ReadID(void);
Jerome Coutant 1:917af0ca86df 262 void L3GD20_RebootCmd(void);
Jerome Coutant 1:917af0ca86df 263
Jerome Coutant 1:917af0ca86df 264 /* Interrupt Configuration Functions */
Jerome Coutant 1:917af0ca86df 265 void L3GD20_INT1InterruptConfig(uint16_t Int1Config);
Jerome Coutant 1:917af0ca86df 266 void L3GD20_EnableIT(uint8_t IntSel);
Jerome Coutant 1:917af0ca86df 267 void L3GD20_DisableIT(uint8_t IntSel);
Jerome Coutant 1:917af0ca86df 268
Jerome Coutant 1:917af0ca86df 269 /* High Pass Filter Configuration Functions */
Jerome Coutant 1:917af0ca86df 270 void L3GD20_FilterConfig(uint8_t FilterStruct);
Jerome Coutant 1:917af0ca86df 271 void L3GD20_FilterCmd(uint8_t HighPassFilterState);
Jerome Coutant 1:917af0ca86df 272 void L3GD20_ReadXYZAngRate(float *pfData);
Jerome Coutant 1:917af0ca86df 273 uint8_t L3GD20_GetDataStatus(void);
Jerome Coutant 1:917af0ca86df 274
Jerome Coutant 1:917af0ca86df 275 /* Gyroscope IO functions */
Jerome Coutant 1:917af0ca86df 276 void GYRO_IO_Init(void);
Jerome Coutant 1:917af0ca86df 277 void GYRO_IO_DeInit(void);
Jerome Coutant 1:917af0ca86df 278 void GYRO_IO_Write(uint8_t *pBuffer, uint8_t WriteAddr, uint16_t NumByteToWrite);
Jerome Coutant 1:917af0ca86df 279 void GYRO_IO_Read(uint8_t *pBuffer, uint8_t ReadAddr, uint16_t NumByteToRead);
Jerome Coutant 1:917af0ca86df 280
Jerome Coutant 1:917af0ca86df 281 /* Gyroscope driver structure */
Jerome Coutant 1:917af0ca86df 282 extern GYRO_DrvTypeDef L3gd20Drv;
Jerome Coutant 1:917af0ca86df 283
Jerome Coutant 1:917af0ca86df 284 /**
Jerome Coutant 1:917af0ca86df 285 * @}
Jerome Coutant 1:917af0ca86df 286 */
Jerome Coutant 1:917af0ca86df 287
Jerome Coutant 1:917af0ca86df 288 /**
Jerome Coutant 1:917af0ca86df 289 * @}
Jerome Coutant 1:917af0ca86df 290 */
Jerome Coutant 1:917af0ca86df 291
Jerome Coutant 1:917af0ca86df 292 /**
Jerome Coutant 1:917af0ca86df 293 * @}
Jerome Coutant 1:917af0ca86df 294 */
Jerome Coutant 1:917af0ca86df 295
Jerome Coutant 1:917af0ca86df 296 /**
Jerome Coutant 1:917af0ca86df 297 * @}
Jerome Coutant 1:917af0ca86df 298 */
Jerome Coutant 1:917af0ca86df 299
Jerome Coutant 1:917af0ca86df 300 #ifdef __cplusplus
Jerome Coutant 1:917af0ca86df 301 }
Jerome Coutant 1:917af0ca86df 302 #endif
Jerome Coutant 1:917af0ca86df 303
Jerome Coutant 1:917af0ca86df 304 #endif /* __L3GD20_H */
Jerome Coutant 1:917af0ca86df 305
Jerome Coutant 1:917af0ca86df 306 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/