STM32F429ZI Discovery board drivers

Dependents:   2a 2b 2c 2d1 ... more

Embed: (wiki syntax)

« Back to documentation index

l3gd20.c File Reference

l3gd20.c File Reference

This file provides a set of functions needed to manage the L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope. More...

Go to the source code of this file.

Functions

void L3GD20_Init (uint16_t InitStruct)
 Set L3GD20 Initialization.
void L3GD20_DeInit (void)
 L3GD20 De-initialization.
uint8_t L3GD20_ReadID (void)
 Read ID address of L3GD20.
void L3GD20_RebootCmd (void)
 Reboot memory content of L3GD20.
void L3GD20_LowPower (uint16_t InitStruct)
 Set L3GD20 in low-power mode.
void L3GD20_INT1InterruptConfig (uint16_t Int1Config)
 Set L3GD20 Interrupt INT1 configuration.
void L3GD20_EnableIT (uint8_t IntSel)
 Enable INT1 or INT2 interrupt.
void L3GD20_DisableIT (uint8_t IntSel)
 Disable INT1 or INT2 interrupt.
void L3GD20_FilterConfig (uint8_t FilterStruct)
 Set High Pass Filter Modality.
void L3GD20_FilterCmd (uint8_t HighPassFilterState)
 Enable or Disable High Pass Filter.
uint8_t L3GD20_GetDataStatus (void)
 Get status for L3GD20 data.
void L3GD20_ReadXYZAngRate (float *pfData)
 Calculate the L3GD20 angular data.

Detailed Description

This file provides a set of functions needed to manage the L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope.

Author:
MCD Application Team
Version:
V2.0.0
Date:
26-June-2015
Attention:

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file l3gd20.c.