STM32L476G-Discovery board drivers V1.0.0

Dependents:   DiscoLogger DISCO_L476VG_GlassLCD DISCO_L476VG_MicrophoneRecorder DISCO_L476VG_UART ... more

Embed: (wiki syntax)

« Back to documentation index

lsm303c.c File Reference

lsm303c.c File Reference

This file provides a set of functions needed to manage the LSM303C MEMS accelerometer. More...

Go to the source code of this file.

Functions

void LSM303C_AccInit (uint16_t InitStruct)
 Set LSM303C Accelerometer Initialization.
void LSM303C_AccDeInit (void)
 LSM303C Accelerometer De-initialization.
uint8_t LSM303C_AccReadID (void)
 Read LSM303C ID.
void LSM303C_AccLowPower (uint16_t Mode)
 Put Accelerometer in power down mode or not.
void LSM303C_AccFilterConfig (uint8_t FilterStruct)
 Set High Pass Filter Modality.
void LSM303C_AccReadXYZ (int16_t *pData)
 Read X, Y & Z Acceleration values.
void LSM303C_MagInit (MAGNETO_InitTypeDef LSM303C_InitStruct)
 Set LSM303C Magnetometer Initialization.
void LSM303C_MagDeInit (void)
 LSM303C Magnetometer De-initialization.
uint8_t LSM303C_MagReadID (void)
 Read LSM303C ID.
void LSM303C_MagLowPower (uint16_t Mode)
 Put Magnetometer in power down mode or not.
uint8_t LSM303C_MagGetDataStatus (void)
 Get status for Mag LSM303C data.
void LSM303C_MagReadXYZ (int16_t *pData)
 Read X, Y & Z Magnetometer values.

Detailed Description

This file provides a set of functions needed to manage the LSM303C MEMS accelerometer.

Author:
MCD Application Team
Attention:

© Copyright (c) 2015 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file lsm303c.c.