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

GYROSCOPE Exported functions

GYROSCOPE Exported functions
[LSM6DSL]

Functions

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.

Function Documentation

void LSM6DSL_GyroDeInit ( void   )

LSM6DSL Gyroscope De-initialization.

Definition at line 255 of file lsm6dsl.c.

void LSM6DSL_GyroInit ( uint16_t  InitStruct )

Set LSM6DSL Gyroscope Initialization.

Parameters:
InitStruct,:pointer to a LSM6DSL_InitTypeDef structure that contains the configuration setting for the LSM6DSL.

Definition at line 227 of file lsm6dsl.c.

void LSM6DSL_GyroLowPower ( uint16_t  status )

Set/Unset LSM6DSL Gyroscope in low power mode.

Parameters:
status0 means disable Low Power Mode, otherwise Low Power Mode is enabled

Definition at line 288 of file lsm6dsl.c.

uint8_t LSM6DSL_GyroReadID ( void   )

Read ID address of LSM6DSL.

Return values:
ID

Definition at line 276 of file lsm6dsl.c.

void LSM6DSL_GyroReadXYZAngRate ( float *  pfData )

Calculate the LSM6DSL angular data.

Parameters:
pfData,:Data out pointer

Definition at line 315 of file lsm6dsl.c.