Farnell-Element14 Bologna IOT Team / BSP_B-L475E-IOT01

Dependencies:   VL53L0X

Fork of BSP_B-L475E-IOT01 by ST

Embed: (wiki syntax)

« Back to documentation index

lsm6dsl.h File Reference

lsm6dsl.h File Reference

LSM6DSL header driver file. 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.
void SENSOR_IO_Init (void)
 Initializes Sensors low level.
void SENSOR_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data.
uint8_t SENSOR_IO_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data.
uint16_t SENSOR_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
 Reads multiple data with I2C communication channel from TouchScreen.
void SENSOR_IO_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
 Writes multiple data with I2C communication channel from MCU to TouchScreen.

Detailed Description

LSM6DSL header driver file.

Author:
MCD Application Team
Version:
V1.0.0
Date:
14-February-2017
Attention:

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