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.
STM32L476G_DISCOVERY_COMPASS_Exported_Functions
[STM32L476G-DISCOVERY COMPASS]
Functions | |
void | ACCELERO_IO_DeInit (void) |
De-Configures COMPASS/ACCELEROMETER io interface. | |
void | MAGNETO_IO_DeInit (void) |
de-Configures COMPASS/MAGNETO SPI interface. | |
COMPASS_StatusTypeDef | BSP_COMPASS_Init (void) |
Initialize the COMPASS. | |
void | BSP_COMPASS_DeInit (void) |
DeInitialize the COMPASS. | |
void | BSP_COMPASS_LowPower (void) |
Put the COMPASS in low power mode. | |
void | BSP_COMPASS_AccGetXYZ (int16_t *pDataXYZ) |
Get XYZ acceleration values. | |
void | BSP_COMPASS_MagGetXYZ (int16_t *pDataXYZ) |
Get XYZ magnetometer values. |
Function Documentation
void ACCELERO_IO_DeInit | ( | void | ) |
De-Configures COMPASS/ACCELEROMETER io interface.
- Return values:
-
None
Definition at line 1188 of file stm32l476g_discovery.c.
void BSP_COMPASS_AccGetXYZ | ( | int16_t * | pDataXYZ ) |
Get XYZ acceleration values.
- Parameters:
-
pDataXYZ Pointer on 3 angular accelerations table with pDataXYZ[0] = X axis, pDataXYZ[1] = Y axis, pDataXYZ[2] = Z axis
- Return values:
-
None
Definition at line 219 of file stm32l476g_discovery_compass.c.
void BSP_COMPASS_DeInit | ( | void | ) |
DeInitialize the COMPASS.
- Return values:
-
None.
Definition at line 188 of file stm32l476g_discovery_compass.c.
COMPASS_StatusTypeDef BSP_COMPASS_Init | ( | void | ) |
Initialize the COMPASS.
- Return values:
-
COMPASS_OK or COMPASS_ERROR
Definition at line 112 of file stm32l476g_discovery_compass.c.
void BSP_COMPASS_LowPower | ( | void | ) |
Put the COMPASS in low power mode.
- Return values:
-
None
Definition at line 199 of file stm32l476g_discovery_compass.c.
void BSP_COMPASS_MagGetXYZ | ( | int16_t * | pDataXYZ ) |
Get XYZ magnetometer values.
- Parameters:
-
pDataXYZ Pointer on 3 magnetometer values table with pDataXYZ[0] = X axis, pDataXYZ[1] = Y axis, pDataXYZ[2] = Z axis
- Return values:
-
None
Definition at line 233 of file stm32l476g_discovery_compass.c.
void MAGNETO_IO_DeInit | ( | void | ) |
de-Configures COMPASS/MAGNETO SPI interface.
- Return values:
-
None
Definition at line 1275 of file stm32l476g_discovery.c.
Generated on Tue Jul 12 2022 11:00:17 by
