STSW-STLKT01
|
This file provides the Gyroscope driver for the Sensor Tile board. More...
#include "SensorTile_gyro.h"
Go to the source code of this file.
Functions | |
static DrvStatusTypeDef | BSP_LSM6DSM_GYRO_Init (void **handle) |
DrvStatusTypeDef | BSP_GYRO_Init (GYRO_ID_t id, void **handle) |
Initialize a gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_DeInit (void **handle) |
Deinitialize a gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_Sensor_Enable (void *handle) |
Enable gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_Sensor_Disable (void *handle) |
Disable gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_IsInitialized (void *handle, uint8_t *status) |
Check if the gyroscope sensor is initialized. More... | |
DrvStatusTypeDef | BSP_GYRO_IsEnabled (void *handle, uint8_t *status) |
Check if the gyroscope sensor is enabled. More... | |
DrvStatusTypeDef | BSP_GYRO_IsCombo (void *handle, uint8_t *status) |
Check if the gyroscope sensor is combo. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_Instance (void *handle, uint8_t *instance) |
Get the gyroscope sensor instance. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_WhoAmI (void *handle, uint8_t *who_am_i) |
Get the WHO_AM_I ID of the gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_Check_WhoAmI (void *handle) |
Check the WHO_AM_I ID of the gyroscope sensor. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_Axes (void *handle, SensorAxes_t *angular_velocity) |
Get the gyroscope sensor axes. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_AxesRaw (void *handle, SensorAxesRaw_t *value) |
Get the gyroscope sensor raw axes. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_Sensitivity (void *handle, float *sensitivity) |
Get the gyroscope sensor sensitivity. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_ODR (void *handle, float *odr) |
Get the gyroscope sensor output data rate. More... | |
DrvStatusTypeDef | BSP_GYRO_Set_ODR (void *handle, SensorOdr_t odr) |
Set the gyroscope sensor output data rate. More... | |
DrvStatusTypeDef | BSP_GYRO_Set_ODR_Value (void *handle, float odr) |
Set the gyroscope sensor output data rate. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_FS (void *handle, float *fullScale) |
Get the gyroscope sensor full scale. More... | |
DrvStatusTypeDef | BSP_GYRO_Set_FS (void *handle, SensorFs_t fullScale) |
Set the gyroscope sensor full scale. More... | |
DrvStatusTypeDef | BSP_GYRO_Set_FS_Value (void *handle, float fullScale) |
Set the gyroscope sensor full scale. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_Axes_Status (void *handle, uint8_t *xyz_enabled) |
Get the gyroscope sensor axes status. More... | |
DrvStatusTypeDef | BSP_GYRO_Read_Reg (void *handle, uint8_t reg, uint8_t *data) |
Read the data from register. More... | |
DrvStatusTypeDef | BSP_GYRO_Write_Reg (void *handle, uint8_t reg, uint8_t data) |
Write the data to register. More... | |
DrvStatusTypeDef | BSP_GYRO_Get_DRDY_Status (void *handle, uint8_t *status) |
Get gyroscope data ready status. More... | |
DrvStatusTypeDef | BSP_GYRO_Set_Axes_Status (void *handle, uint8_t *enable_xyz) |
Set the enabled/disabled status of the gyroscope sensor axes. More... | |
Variables | |
static DrvContextTypeDef | GYRO_SensorHandle [GYRO_SENSORS_MAX_NUM] |
static GYRO_Data_t | GYRO_Data [GYRO_SENSORS_MAX_NUM] |
static LSM6DSM_G_Data_t | LSM6DSM_G_0_Data |
Detailed Description
This file provides the Gyroscope driver for the Sensor Tile board.
- Author
- Central Labs
- Version
- V1.3.1
- Date
- 27-Apr-2017
- Attention
© COPYRIGHT(c) 2016 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- 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.
- 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 SensorTile_gyro.c.
Generated by 1.8.13