Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
STM32L476G_DISCOVERY_GYROSCOPE_Exported_Functions
[STM32L476G-DISCOVERY GYROSCOPE]
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 163 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 262 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 246 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 275 of file stm32l476g_discovery_gyroscope.c.
uint8_t BSP_GYRO_Init | ( | void | ) |
Initialize Gyroscope.
- Return values:
-
GYRO_OK or GYRO_ERROR
Definition at line 105 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 222 of file stm32l476g_discovery_gyroscope.c.
void BSP_GYRO_LowPower | ( | void | ) |
Put Gyroscope in low power mode.
- Return values:
-
None
Definition at line 173 of file stm32l476g_discovery_gyroscope.c.
uint8_t BSP_GYRO_ReadID | ( | void | ) |
Read ID of Gyroscope component.
- Return values:
-
ID
Definition at line 193 of file stm32l476g_discovery_gyroscope.c.
void BSP_GYRO_Reset | ( | void | ) |
Reboot memory content of Gyroscope.
- Return values:
-
None
Definition at line 208 of file stm32l476g_discovery_gyroscope.c.
Generated on Tue Jul 12 2022 17:38:59 by
