STM32F401-Discovery BSP User Manual: STM32F401 DISCOVERY GYROSCOPE Exported Functions

STM32F401-Discovery BSP Drivers

STM32F401-Discovery BSP User Manual
STM32F401 DISCOVERY GYROSCOPE Exported Functions

Functions

uint8_t BSP_GYRO_Init (void)
 Set Gyroscope Initialization.
void BSP_GYRO_Reset (void)
 Reboot memory content of Gyroscope.
uint8_t BSP_GYRO_ReadID (void)
 Read ID of Gyroscope component.
void BSP_GYRO_ITConfig (GYRO_InterruptConfigTypeDef *pIntConfigStruct)
 Configures INT1 interrupt.
void BSP_GYRO_EnableIT (uint8_t IntPin)
 Enables INT1 or INT2 interrupt.
void BSP_GYRO_DisableIT (uint8_t IntPin)
 Disables INT1 or INT2 interrupt.
void BSP_GYRO_GetXYZ (float *pfData)
 Get XYZ angular acceleration.

Function Documentation

void BSP_GYRO_DisableIT ( uint8_t  IntPin)

Disables INT1 or INT2 interrupt.

Parameters:
IntPin,:Interrupt pin This parameter can be:
  • L3GD20_INT1
  • L3GD20_INT2

Definition at line 215 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

void BSP_GYRO_EnableIT ( uint8_t  IntPin)

Enables INT1 or INT2 interrupt.

Parameters:
IntPin,:Interrupt pin This parameter can be:
  • L3GD20_INT1
  • L3GD20_INT2

Definition at line 200 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

void BSP_GYRO_GetXYZ ( float *  pfData)

Get XYZ angular acceleration.

Parameters:
pfData,:pointer on floating array

Definition at line 227 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

uint8_t BSP_GYRO_Init ( void  )

Set Gyroscope Initialization.

Return values:
GYRO_OKif no problem during initialization

Definition at line 98 of file stm32f401_discovery_gyroscope.c.

References GYRO_ERROR, GYRO_OK, and GyroscopeDrv.

void BSP_GYRO_ITConfig ( GYRO_InterruptConfigTypeDef *  pIntConfig)

Configures INT1 interrupt.

Parameters:
pIntConfig,:pointer to a L3GD20_InterruptConfig_TypeDef structure that contains the configuration setting for the L3GD20 Interrupt.

Definition at line 177 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

uint8_t BSP_GYRO_ReadID ( void  )

Read ID of Gyroscope component.

Return values:
ID

Definition at line 150 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

void BSP_GYRO_Reset ( void  )

Reboot memory content of Gyroscope.

Definition at line 164 of file stm32f401_discovery_gyroscope.c.

References GyroscopeDrv.

Generated on Thu Jan 19 2017 16:53:47 for STM32F401-Discovery BSP User Manual by   doxygen 1.7.6.1