STM32L476G-Discovery board drivers V1.0.0

Dependents:   DiscoLogger DISCO_L476VG_GlassLCD DISCO_L476VG_MicrophoneRecorder DISCO_L476VG_UART ... more

Embed: (wiki syntax)

« Back to documentation index

Exported Functions

Functions

uint8_t BSP_GYRO_Init (void)
 Initialize Gyroscope.
void BSP_GYRO_DeInit (void)
 DeInitialize Gyroscope.
void BSP_GYRO_LowPower (void)
 Put Gyroscope in low power mode.
uint8_t BSP_GYRO_ReadID (void)
 Read ID of Gyroscope component.
void BSP_GYRO_Reset (void)
 Reboot memory content of Gyroscope.
void BSP_GYRO_ITConfig (GYRO_InterruptConfigTypeDef *pIntConfig)
 Configure Gyroscope interrupts (INT1 or INT2).
void BSP_GYRO_EnableIT (uint8_t IntPin)
 Enable Gyroscope interrupts (INT1 or INT2).
void BSP_GYRO_DisableIT (uint8_t IntPin)
 Disable Gyroscope interrupts (INT1 or INT2).
void BSP_GYRO_GetXYZ (float *pfData)
 Get XYZ angular acceleration from the Gyroscope.

Function Documentation

void BSP_GYRO_DeInit ( void   )

DeInitialize Gyroscope.

Return values:
None

Definition at line 145 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_DisableIT ( uint8_t  IntPin )

Disable Gyroscope interrupts (INT1 or INT2).

Parameters:
IntPin,:Interrupt pin This parameter can be:

  • L3GD20_INT1
  • L3GD20_INT2
Return values:
None

Definition at line 244 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_EnableIT ( uint8_t  IntPin )

Enable Gyroscope interrupts (INT1 or INT2).

Parameters:
IntPin,:Interrupt pin This parameter can be:

  • L3GD20_INT1
  • L3GD20_INT2
Return values:
None

Definition at line 228 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_GetXYZ ( float *  pfData )

Get XYZ angular acceleration from the Gyroscope.

Parameters:
pfData,:pointer on floating array
Return values:
None

Definition at line 257 of file stm32l476g_discovery_gyroscope.c.

uint8_t BSP_GYRO_Init ( void   )

Initialize Gyroscope.

Return values:
GYRO_OKor GYRO_ERROR

Definition at line 87 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_ITConfig ( GYRO_InterruptConfigTypeDef *  pIntConfig )

Configure Gyroscope interrupts (INT1 or INT2).

Parameters:
pIntConfig,:pointer to a GYRO_InterruptConfigTypeDef structure that contains the configuration setting for the L3GD20 Interrupt.
Return values:
None

Definition at line 204 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_LowPower ( void   )

Put Gyroscope in low power mode.

Return values:
None

Definition at line 155 of file stm32l476g_discovery_gyroscope.c.

uint8_t BSP_GYRO_ReadID ( void   )

Read ID of Gyroscope component.

Return values:
ID

Definition at line 175 of file stm32l476g_discovery_gyroscope.c.

void BSP_GYRO_Reset ( void   )

Reboot memory content of Gyroscope.

Return values:
None

Definition at line 190 of file stm32l476g_discovery_gyroscope.c.