ST / BSP_B-L475E-IOT01

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

Embed: (wiki syntax)

« Back to documentation index

lsm6dsl.c File Reference

lsm6dsl.c File Reference

This file provides a set of functions needed to manage the LSM6DSL accelero and gyro devices. More...

Go to the source code of this file.

Functions

void LSM6DSL_AccInit (uint16_t InitStruct)
 Set LSM6DSL Accelerometer Initialization.
void LSM6DSL_AccDeInit (void)
 LSM6DSL Accelerometer De-initialization.
uint8_t LSM6DSL_AccReadID (void)
 Read LSM6DSL ID.
void LSM6DSL_AccLowPower (uint16_t status)
 Set/Unset Accelerometer in low power mode.
void LSM6DSL_AccReadXYZ (int16_t *pData)
 Read X, Y & Z Acceleration values.
void LSM6DSL_GyroInit (uint16_t InitStruct)
 Set LSM6DSL Gyroscope Initialization.
void LSM6DSL_GyroDeInit (void)
 LSM6DSL Gyroscope De-initialization.
uint8_t LSM6DSL_GyroReadID (void)
 Read ID address of LSM6DSL.
void LSM6DSL_GyroLowPower (uint16_t status)
 Set/Unset LSM6DSL Gyroscope in low power mode.
void LSM6DSL_GyroReadXYZAngRate (float *pfData)
 Calculate the LSM6DSL angular data.

Detailed Description

This file provides a set of functions needed to manage the LSM6DSL accelero and gyro devices.

Author:
MCD Application Team
Attention:

<

© Copyright (c) 2017 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 lsm6dsl.c.