E&R S3 prime / BSP_DISCO_L476VG
Embed: (wiki syntax)

« Back to documentation index

stm32l476g_discovery_compass.c File Reference

stm32l476g_discovery_compass.c File Reference

This file provides a set of functions needed to manage the E-Compass (ACCELEROMETER + MAGNETOMETER) MEMS LSM303C available on STM32L476G-Discovery board. More...

Go to the source code of this file.

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.

Detailed Description

This file provides a set of functions needed to manage the E-Compass (ACCELEROMETER + MAGNETOMETER) MEMS LSM303C available on STM32L476G-Discovery board.

Author:
MCD Application Team
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l476g_discovery_compass.c.