STSW-STLKT01: SENSORTILE_GYRO Exported functions

STSW-STLKT01

STSW-STLKT01
SENSORTILE_GYRO Exported functions

Functions

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...
 

Detailed Description

Function Documentation

◆ BSP_GYRO_Check_WhoAmI()

DrvStatusTypeDef BSP_GYRO_Check_WhoAmI ( void *  handle)

Check the WHO_AM_I ID of the gyroscope sensor.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 450 of file SensorTile_gyro.c.

◆ BSP_GYRO_DeInit()

DrvStatusTypeDef BSP_GYRO_DeInit ( void **  handle)

Deinitialize a gyroscope sensor.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 198 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_Axes()

DrvStatusTypeDef BSP_GYRO_Get_Axes ( void *  handle,
SensorAxes_t *  angular_velocity 
)

Get the gyroscope sensor axes.

Parameters
handlethe device handle
angular_velocitypointer where the values of the axes are written [mdps]
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 484 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_Axes_Status()

DrvStatusTypeDef BSP_GYRO_Get_Axes_Status ( void *  handle,
uint8_t *  xyz_enabled 
)

Get the gyroscope sensor axes status.

Parameters
handlethe device handle
xyz_enabledthe pointer to the axes enabled/disabled status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 811 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_AxesRaw()

DrvStatusTypeDef BSP_GYRO_Get_AxesRaw ( void *  handle,
SensorAxesRaw_t *  value 
)

Get the gyroscope sensor raw axes.

Parameters
handlethe device handle
valuepointer where the raw values of the axes are written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 522 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_DRDY_Status()

DrvStatusTypeDef BSP_GYRO_Get_DRDY_Status ( void *  handle,
uint8_t *  status 
)

Get gyroscope data ready status.

Parameters
handlethe device handle
statusthe data ready status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 923 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_FS()

DrvStatusTypeDef BSP_GYRO_Get_FS ( void *  handle,
float *  fullScale 
)

Get the gyroscope sensor full scale.

Parameters
handlethe device handle
fullScalepointer where the full scale is written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 705 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_Instance()

DrvStatusTypeDef BSP_GYRO_Get_Instance ( void *  handle,
uint8_t *  instance 
)

Get the gyroscope sensor instance.

Parameters
handlethe device handle
instancethe pointer to the device instance
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 385 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_ODR()

DrvStatusTypeDef BSP_GYRO_Get_ODR ( void *  handle,
float *  odr 
)

Get the gyroscope sensor output data rate.

Parameters
handlethe device handle
odrpointer where the output data rate is written
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 599 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_Sensitivity()

DrvStatusTypeDef BSP_GYRO_Get_Sensitivity ( void *  handle,
float *  sensitivity 
)

Get the gyroscope sensor sensitivity.

Parameters
handlethe device handle
sensitivitypointer where the sensitivity value is written [mdps/LSB]
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 561 of file SensorTile_gyro.c.

◆ BSP_GYRO_Get_WhoAmI()

DrvStatusTypeDef BSP_GYRO_Get_WhoAmI ( void *  handle,
uint8_t *  who_am_i 
)

Get the WHO_AM_I ID of the gyroscope sensor.

Parameters
handlethe device handle
who_am_ipointer to the value of WHO_AM_I register
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 413 of file SensorTile_gyro.c.

◆ BSP_GYRO_Init()

DrvStatusTypeDef BSP_GYRO_Init ( GYRO_ID_t  id,
void **  handle 
)

Initialize a gyroscope sensor.

Parameters
idthe gyroscope sensor identifier
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 88 of file SensorTile_gyro.c.

◆ BSP_GYRO_IsCombo()

DrvStatusTypeDef BSP_GYRO_IsCombo ( void *  handle,
uint8_t *  status 
)

Check if the gyroscope sensor is combo.

Parameters
handlethe device handle
statusthe pointer to the combo status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 358 of file SensorTile_gyro.c.

◆ BSP_GYRO_IsEnabled()

DrvStatusTypeDef BSP_GYRO_IsEnabled ( void *  handle,
uint8_t *  status 
)

Check if the gyroscope sensor is enabled.

Parameters
handlethe device handle
statusthe pointer to the enable status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 331 of file SensorTile_gyro.c.

◆ BSP_GYRO_IsInitialized()

DrvStatusTypeDef BSP_GYRO_IsInitialized ( void *  handle,
uint8_t *  status 
)

Check if the gyroscope sensor is initialized.

Parameters
handlethe device handle
statusthe pointer to the initialization status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 304 of file SensorTile_gyro.c.

◆ BSP_GYRO_Read_Reg()

DrvStatusTypeDef BSP_GYRO_Read_Reg ( void *  handle,
uint8_t  reg,
uint8_t *  data 
)

Read the data from register.

Parameters
handlethe device handle
regregister address
dataregister data
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 849 of file SensorTile_gyro.c.

◆ BSP_GYRO_Sensor_Disable()

DrvStatusTypeDef BSP_GYRO_Sensor_Disable ( void *  handle)

Disable gyroscope sensor.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 270 of file SensorTile_gyro.c.

◆ BSP_GYRO_Sensor_Enable()

DrvStatusTypeDef BSP_GYRO_Sensor_Enable ( void *  handle)

Enable gyroscope sensor.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 236 of file SensorTile_gyro.c.

◆ BSP_GYRO_Set_Axes_Status()

DrvStatusTypeDef BSP_GYRO_Set_Axes_Status ( void *  handle,
uint8_t *  enable_xyz 
)

Set the enabled/disabled status of the gyroscope sensor axes.

Parameters
handlethe device handle
enable_xyzvector of the axes enabled/disabled status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 957 of file SensorTile_gyro.c.

◆ BSP_GYRO_Set_FS()

DrvStatusTypeDef BSP_GYRO_Set_FS ( void *  handle,
SensorFs_t  fullScale 
)

Set the gyroscope sensor full scale.

Parameters
handlethe device handle
fullScalethe functional full scale to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 743 of file SensorTile_gyro.c.

◆ BSP_GYRO_Set_FS_Value()

DrvStatusTypeDef BSP_GYRO_Set_FS_Value ( void *  handle,
float  fullScale 
)

Set the gyroscope sensor full scale.

Parameters
handlethe device handle
fullScalethe full scale value to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 777 of file SensorTile_gyro.c.

◆ BSP_GYRO_Set_ODR()

DrvStatusTypeDef BSP_GYRO_Set_ODR ( void *  handle,
SensorOdr_t  odr 
)

Set the gyroscope sensor output data rate.

Parameters
handlethe device handle
odrthe functional output data rate to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 637 of file SensorTile_gyro.c.

◆ BSP_GYRO_Set_ODR_Value()

DrvStatusTypeDef BSP_GYRO_Set_ODR_Value ( void *  handle,
float  odr 
)

Set the gyroscope sensor output data rate.

Parameters
handlethe device handle
odrthe output data rate value to be set
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 671 of file SensorTile_gyro.c.

◆ BSP_GYRO_Write_Reg()

DrvStatusTypeDef BSP_GYRO_Write_Reg ( void *  handle,
uint8_t  reg,
uint8_t  data 
)

Write the data to register.

Parameters
handlethe device handle
regregister address
dataregister data
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 889 of file SensorTile_gyro.c.

Generated by   doxygen 1.8.13